mirror of
https://github.com/ClusterCockpit/cc-docker.git
synced 2024-11-10 11:47:24 +01:00
21 lines
449 B
Docker
21 lines
449 B
Docker
|
FROM nginx:1.19.6
|
||
|
|
||
|
LABEL maintainer="Vincent Composieux <vincent.composieux@gmail.com>"
|
||
|
|
||
|
RUN mkdir -p /etc/nginx/templates \
|
||
|
mkdir -p /tmp/nginx
|
||
|
|
||
|
COPY nginx.conf /etc/nginx/
|
||
|
COPY templates/* /etc/nginx/templates/
|
||
|
COPY html/index.html.template /tmp/nginx/
|
||
|
|
||
|
ARG NGINX_SYMFONY_SERVER_NAME
|
||
|
ARG KIBANA_PORT
|
||
|
RUN envsubst < /tmp/nginx/index.html.template > /usr/share/nginx/html/index.html; \
|
||
|
rm -fR /tmp/nginx
|
||
|
|
||
|
CMD ["nginx"]
|
||
|
|
||
|
EXPOSE 80
|
||
|
EXPOSE 443
|