Skip to content

Commit

Permalink
refactor: base on alwatr/nginx (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored Nov 10, 2023
2 parents 3aeb5f6 + 474ee07 commit 5640506
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
3 changes: 2 additions & 1 deletion nginx-pwa/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*
!conf/
!etc/nginx/
!var/www/
11 changes: 6 additions & 5 deletions nginx-pwa/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ghcr.io/alwatr/nginx-core:1.0.0
FROM ghcr.io/alwatr/nginx-core:1.1.0

COPY conf/ /etc/nginx/
COPY etc/nginx/ /etc/nginx/
RUN ls -RlAhF /etc/nginx/

# Default environment for nginx template
ENV NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
Expand All @@ -16,9 +17,9 @@ ARG BUILD_REV
ARG BUILD_DATE
LABEL org.opencontainers.image.title="alwatr/nginx-pwa" \
org.opencontainers.image.description="High-performance, accelerated NGINX, optimized for serving progressive web applications. Enhanced and accelerated by Alwatr." \
org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-core:1.0.0" \
org.opencontainers.image.version="1.0.0" \
org.opencontainers.image.ref.name="1.0.0-nginx1.25.3-alpine" \
org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-core:1.1.0" \
org.opencontainers.image.version="1.1.0" \
org.opencontainers.image.ref.name="1.1.0-n1.25.3-a3.18-slim" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REV} \
Expand Down
3 changes: 2 additions & 1 deletion nginx-ws/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*
!conf/
!etc/nginx/
!var/www/
11 changes: 6 additions & 5 deletions nginx-ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ghcr.io/alwatr/nginx-core:1.0.0
FROM ghcr.io/alwatr/nginx-core:1.1.0

COPY conf/ /etc/nginx/
COPY etc/nginx/ /etc/nginx/
RUN ls -RlAhF /etc/nginx/

# Default environment for nginx template
ENV NGINX_OPEN_FILE_CACHE="max=1000 inactive=1h" \
Expand All @@ -16,9 +17,9 @@ 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.base.name="ghcr.io/alwatr/nginx-core:1.0.0" \
org.opencontainers.image.version="1.0.0" \
org.opencontainers.image.ref.name="1.0.0-nginx1.25.3-alpine" \
org.opencontainers.image.base.name="ghcr.io/alwatr/nginx-core:1.1.0" \
org.opencontainers.image.version="1.1.0" \
org.opencontainers.image.ref.name="1.1.0-n1.25.3-a3.18-slim" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REV} \
Expand Down
1 change: 1 addition & 0 deletions nginx/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*
!etc/nginx/
!var/www/

0 comments on commit 5640506

Please sign in to comment.