This commit is contained in:
Luke Gustafson
2024-11-27 00:18:25 +00:00
parent 9a4adcb389
commit 36d4245770
3 changed files with 36 additions and 2 deletions

View File

@@ -19,8 +19,11 @@ CMD ["nginx", "-g", "daemon off;"]
FROM node:18-slim AS backend
WORKDIR /app
# Copy backend files
# Copy package.json to /app directory
COPY backend/package*.json ./
RUN npm install
# Copy remaining backend files
COPY backend/ .
# Run backend