Skip to content

Commit

Permalink
feat(image): make Nginx TCP port configurable (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
peknur authored Nov 23, 2023
1 parent 6cccbfd commit 60c638d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN ./build-index-files.sh
FROM nginx:stable-alpine

RUN rm /etc/nginx/conf.d/*
COPY index.conf /etc/nginx/conf.d/
COPY index.conf /etc/nginx/templates/index.conf.template

COPY --from=build /work/out/* /usr/share/nginx/html/
ENV NGINX_PORT=80
4 changes: 2 additions & 2 deletions index.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 80;
listen [::]:80;
listen ${NGINX_PORT};
listen [::]:${NGINX_PORT};

gzip on;
gzip_types *;
Expand Down

0 comments on commit 60c638d

Please sign in to comment.