Skip to content

Commit

Permalink
remove /etc/nginx/conf.d from nginx base image
Browse files Browse the repository at this point in the history
  • Loading branch information
jvies committed Nov 21, 2023
1 parent 16db97c commit 111afd5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ ENV NGINX_CLIENT_MAX_BODY_SIZE=10m \
NGINX_KEEPALIVE_TIMEOUT=65 \
NGINX_UPSTREAM=humhub:9000

RUN rm -rf /etc/nginx/conf.d/*
COPY nginx/ /
COPY --from=builder --chown=nginx:nginx /usr/src/humhub/ /var/www/localhost/htdocs/

Expand All @@ -174,6 +175,7 @@ LABEL variant="allinone"
RUN apk add --no-cache nginx && \
chown -R nginx:nginx /var/lib/nginx/

RUN rm -rf /etc/nginx/conf.d/*
COPY nginx/ /

EXPOSE 80

0 comments on commit 111afd5

Please sign in to comment.