mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-02-14 16:59:51 +00:00
Put back entrypoint (#149)
This commit is contained in:
@@ -5,3 +5,8 @@ COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY src/favicon.ico /usr/share/nginx/html/
|
||||
COPY src/index.htm /usr/share/nginx/html/
|
||||
COPY src/ttlsh_files /usr/share/nginx/html/ttlsh_files/
|
||||
|
||||
ADD entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
7
nginx/entrypoint.sh
Normal file
7
nginx/entrypoint.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sed -i "s/__PORT__/$PORT/g" /etc/nginx/nginx.conf
|
||||
|
||||
exec "$@"
|
||||
@@ -11,7 +11,7 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen <%= ENV["PORT"] %>;
|
||||
listen __PORT__;
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
|
||||
Reference in New Issue
Block a user