Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ RUN chown -R nonroot:nonroot /var/cache /var/run
RUN touch /var/run/nginx.pid && \
chown -R nonroot:nonroot /var/run/nginx.pid

RUN sed -i -E 's/(listen[ ]+)80;/\18000;/' /packages/etc/nginx/conf.d/default.conf

FROM scratch
COPY --from=builder /packages /
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY --from=builder /var/cache /var/cache
COPY --from=builder /var/run /var/run

COPY nginx_configs/nginx.conf /etc/nginx/nginx.conf
COPY nginx_configs/default.conf /etc/nginx/conf.d/default.conf

RUN --mount=type=bind,from=builder,target=/mount ["/mount/bin/ln", "-sf", "/dev/stdout", "/var/log/nginx/access.log"]
RUN --mount=type=bind,from=builder,target=/mount ["/mount/bin/ln", "-sf", "/dev/stderr", "/var/log/nginx/error.log"]

Expand Down
43 changes: 0 additions & 43 deletions nginx_configs/default.conf

This file was deleted.

31 changes: 0 additions & 31 deletions nginx_configs/nginx.conf

This file was deleted.