3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00
zeppelin/docker/development/nginx/Dockerfile

12 lines
415 B
Text
Raw Permalink Normal View History

2022-06-01 19:11:44 +03:00
FROM nginx
ARG API_PORT
2022-06-26 19:30:46 +03:00
ARG DOCKER_DEV_API_PORT
ARG DOCKER_DEV_DASHBOARD_PORT
2022-06-01 19:11:44 +03:00
RUN apt-get update && apt-get install -y openssl
2022-06-26 19:30:46 +03:00
RUN openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/private/localhost-cert.key -out /etc/ssl/certs/localhost-cert.pem -days 3650 -subj '/CN=localhost' -nodes
2022-06-01 19:11:44 +03:00
COPY ./default.conf /etc/nginx/conf.d/default.conf
RUN sed -ir "s/_API_PORT_/${API_PORT}/g" /etc/nginx/conf.d/default.conf