Merge pull request #12 from HyunggyuJang/fix/webpack-artifacts

webpack artifacts should exist for nginx image
This commit is contained in:
Danny Avila 2023-03-07 21:07:13 -05:00 committed by GitHub
commit 0f54251459

View file

@ -7,8 +7,8 @@ COPY package*.json /client/
RUN npm install
# Copy the current directory contents into the container at /client
COPY . /client/
# Run the app when the container launches
CMD ["npm", "run", "build"]
# Build webpack artifacts
RUN npm run build
# Stage 2
FROM nginx:stable-alpine