Skip to content

Commit

Permalink
feat(nginx-ws): update to nginx-core v2
Browse files Browse the repository at this point in the history
BREAKING CHANGE: WORKDIR and default NGINX_DOCUMENT_ROOT changed to /data
  • Loading branch information
alimd committed Nov 26, 2023
1 parent 12fe33a commit bfc0c5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nginx-ws/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*
!etc/nginx/
!var/www/
!data/
7 changes: 4 additions & 3 deletions nginx-ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM ghcr.io/alwatr/nginx-core:1.1.1

COPY etc/nginx/ /etc/nginx/
RUN ls -RlAhF /etc/nginx/
# COPY data/ .
RUN ls -RlahF /etc/nginx /data

# Default environment for nginx template
ENV NGINX_CLIENT_MAX_BODY_SIZE=1k \
Expand All @@ -23,10 +24,10 @@ ENV NGINX_CLIENT_MAX_BODY_SIZE=1k \
ARG BUILD_REV
ARG BUILD_DATE
LABEL org.opencontainers.image.title="alwatr/nginx-ws" \
org.opencontainers.image.description="High-performance, accelerated NGINX, optimized for serving static website. Enhanced and accelerated by Alwatr." \
org.opencontainers.image.description="This is a high-performance version of NGINX, which has been enhanced by Alwatr for the purpose of serving static website content efficiently." \
org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-core:1.1.1" \
org.opencontainers.image.version="1.1.1" \
org.opencontainers.image.ref.name="1.1.1-n1.25.3-a3.18-slim" \
org.opencontainers.image.ref.name="2.0.0-nginx1.25.3-alpine3.18-slim" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REV} \
Expand Down

0 comments on commit bfc0c5c

Please sign in to comment.