This commit is contained in:
Luke Gustafson
2024-11-27 00:24:25 +00:00
parent 1cac9302ec
commit 1fd7b595f8
10 changed files with 191 additions and 3 deletions

View File

@@ -1,7 +1,6 @@
# Stage 1: Build the React app (Frontend)
FROM node:18-slim AS frontend-build
WORKDIR /app
COPY . .
# Copy frontend files
COPY frontend/package*.json ./frontend/
@@ -21,7 +20,7 @@ FROM node:18-slim AS backend
WORKDIR /app
# Copy package.json to /app directory
COPY backend/package*.json ./
COPY frontend/package*.json ./
RUN npm install
# Copy remaining backend files