minor update to dockerfile for the react client.
This commit is contained in:
+2
-1
@@ -5,13 +5,14 @@ FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY index.html /app
|
||||
COPY package.json /app
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the React app
|
||||
COPY src/. /app
|
||||
COPY src/. /app/src/
|
||||
|
||||
# Build the React app for production
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user