mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-21 22:28:18 +02:00
[dyad] wrote 3 file(s)
This commit is contained in:
1 parent
c759181e23
commit
c2bc56eb84
2 files changed
+16
-10
No files matched your search
+15
-9
@@ -1,22 +1,28 @@
|
|||||||
FROM node:18-alpine
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
# Install build dependencies
|
# Install dependencies first (better layer caching)
|
||||||
RUN apk add --no-cache python3 make g++
|
|
||||||
|
|
||||||
# Copy package files
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy source code
|
# Copy application files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build CSS
|
# Build CSS
|
||||||
RUN npm run build:css
|
RUN npm run build:css
|
||||||
|
|
||||||
|
# Create data and uploads directories
|
||||||
|
RUN mkdir -p data public/uploads && \
|
||||||
|
chown -R node:node .
|
||||||
|
|
||||||
|
# Switch to non-root user
|
||||||
|
USER node
|
||||||
|
|
||||||
|
# Set environment variables
|
||||||
|
ENV NODE_ENV=production \
|
||||||
|
PORT=2222
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 2222
|
EXPOSE 2222
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js",
|
"start": "node server.js",
|
||||||
"dev": "nodemon server.js",
|
"dev": "nodemon server.js",
|
||||||
"build:css": "tailwindcss -i ./public/css/styles.css -o ./public/css/dist/styles.css --minify"
|
"build:css": "tailwindcss -i ./src/globals.css -o ./public/css/dist/styles.css --minify"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tanstack/react-query": "^5.90.7",
|
"@tanstack/react-query": "^5.90.7",
|
||||||
|
|||||||
Reference in new issue
Block a user