Skip to content

Commit

Permalink
Docker Build Repaired
Browse files Browse the repository at this point in the history
  • Loading branch information
SchulzeStTSI committed Sep 22, 2021
1 parent 6caac84 commit 6bff050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM nginx:alpine

COPY nginx/default.conf.template /etc/nginx/conf.d/default.conf
CMD sed -i "s/PROXY_AUTH/$PROXY_AUTH/g" /etc/nginx/conf.d/default.conf
COPY ./entrypoint/entrypoint.sh /entrypoint.sh
EXPOSE 80
STOPSIGNAL SIGTERM
CMD sh ./entrypoint.sh
3 changes: 3 additions & 0 deletions entrypoint/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
sed -i "s/PROXY_AUTH/$PROXY_AUTH/g" /etc/nginx/conf.d/default.conf;
sh docker-entrypoint.sh nginx -g 'daemon off;'

0 comments on commit 6bff050

Please sign in to comment.