Skip to content

Commit

Permalink
update proxy build
Browse files Browse the repository at this point in the history
  • Loading branch information
iandday committed May 4, 2024
1 parent 29545d4 commit dd5b003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 3 additions & 5 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ COPY ./frontend .
RUN npm run build


FROM nginx
FROM nginxinc/nginx-unprivileged

ENV APP_HOST=django
ENV APP_PORT=8000
ENV LISTEN_PORT=80


COPY ./proxy/start.sh /start.sh
RUN chmod +x /start.sh
RUN echo "daemon off;" >> /etc/nginx/nginx.conf

COPY ./proxy/proxy_params /etc/nginx/
COPY ./proxy/default.conf /etc/nginx/conf.d/default.conf
WORKDIR /dist
COPY --from=react_builder /app/dist /dist

ENTRYPOINT [ "sh", "-c", "/start.sh" ]
ENTRYPOINT [ "nginx" ]
1 change: 0 additions & 1 deletion proxy/default.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# proxy/default.conf

server {
listen 80;
client_max_body_size 20M;
Expand Down

0 comments on commit dd5b003

Please sign in to comment.