diff --git a/proxy/Dockerfile b/proxy/Dockerfile index 85e9e7f..8b9cb84 100644 --- a/proxy/Dockerfile +++ b/proxy/Dockerfile @@ -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" ] \ No newline at end of file +ENTRYPOINT [ "nginx" ] \ No newline at end of file diff --git a/proxy/default.conf b/proxy/default.conf index 0bd71cd..61bbfc3 100644 --- a/proxy/default.conf +++ b/proxy/default.conf @@ -1,5 +1,4 @@ # proxy/default.conf - server { listen 80; client_max_body_size 20M;