mirror of
https://github.com/owntracks/frontend.git
synced 2026-08-25 20:47:16 +00:00
Apply suggestions from code review
Co-Authored-By: Linus Groh <mail@linusgroh.de>
This commit is contained in:
+2
-2
@@ -1,12 +1,12 @@
|
||||
FROM nginx:alpine
|
||||
EXPOSE 80
|
||||
ENV LISTEN_PORT=80 \
|
||||
SERVER_URL=otrecorder \
|
||||
SERVER_HOST=otrecorder \
|
||||
SERVER_PORT=80
|
||||
|
||||
COPY nginx.tmpl /etc/nginx/nginx.tmpl
|
||||
COPY index.html /usr/share/nginx/html
|
||||
COPY static/ /usr/share/nginx/html/static/
|
||||
RUN ls /usr/share/nginx/html/*
|
||||
CMD /bin/sh -c "envsubst '\${SERVER_URL} \${SERVER_PORT} \${LISTEN_PORT}' < /etc/nginx/nginx.tmpl > /etc/nginx/nginx.conf && nginx -g 'daemon off;' || cat /etc/nginx/nginx.conf"
|
||||
CMD /bin/sh -c "envsubst '\${SERVER_HOST} \${SERVER_PORT} \${LISTEN_PORT}' < /etc/nginx/nginx.tmpl > /etc/nginx/nginx.conf && nginx -g 'daemon off;' || cat /etc/nginx/nginx.conf"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user