|
123456789101112131415161718192021222324252627 |
- FROM nginx:stable
-
- RUN apt-get update && apt-get install -y \
- python3 \
- python3-pip \
- openssl \
- && rm -rf /var/lib/apt/lists/*
-
- RUN pip3 install --upgrade pip
- RUN pip3 install Jinja2==2.8
-
- RUN rm /etc/nginx/nginx.conf
- RUN rm /etc/nginx/mime.types
- COPY conf.d/nginx.conf /etc/nginx/nginx.conf
- COPY conf.d/mime.types /etc/nginx/mime.types
-
- RUN rm /etc/nginx/conf.d/default.conf
-
- COPY backend.conf.j2 /
- COPY install.py /
-
- COPY entrypoint.sh /
- RUN chmod 755 /entrypoint.sh
-
- ENTRYPOINT ["/entrypoint.sh"]
-
- CMD ["nginx", "-g", "daemon off;"]
|