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
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package.json and package-lock.json
|
# Copy package.json and package-lock.json
|
||||||
|
COPY index.html /app
|
||||||
COPY package.json /app
|
COPY package.json /app
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the React app
|
# Copy the rest of the React app
|
||||||
COPY src/. /app
|
COPY src/. /app/src/
|
||||||
|
|
||||||
# Build the React app for production
|
# Build the React app for production
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user