Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthi-aot committed Mar 20, 2024
1 parent a52f608 commit 5bcdd4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/caseflow_web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ ENV PATH /app/node_modules/.bin:$PATH

COPY package.json package-lock.json ./

# Run npm install and other build steps as root
USER root

RUN npm install --silent

RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache
Expand All @@ -18,6 +21,9 @@ RUN npm run build
# Production stage
FROM nginx:1.17-alpine as production-stage

# Set the user to root explicitly
USER root

# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf

Expand Down

0 comments on commit 5bcdd4d

Please sign in to comment.