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 ff5cc14 commit fc4fcef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/caseflow_web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,13 @@ COPY package.json package-lock.json ./

RUN npm install

RUN mkdir -p node_modules/.cache && chmod -R 777 node_modules/.cache

COPY . .

RUN npm run build

# Production stage
FROM registry.access.redhat.com/ubi8/nginx as production-stage

# Set the user to root explicitly
USER nginx;

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

Expand Down
6 changes: 6 additions & 0 deletions app/caseflow_web/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ events {
}

http {
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
Expand All @@ -22,3 +27,4 @@ http {
}
}
}

0 comments on commit fc4fcef

Please sign in to comment.