Dockerfile aktualisiert

main
Andre 2024-03-25 11:50:59 +01:00
parent 498b397cfc
commit b8d0f6de6f
1 changed files with 3 additions and 2 deletions

View File

@ -21,13 +21,14 @@ RUN if [ ! -f "$SSH_KEY_PATH" ]; then \
# Nginx configuration # Nginx configuration
COPY nginx.conf.dist /etc/nginx/nginx.conf COPY nginx.conf.dist /etc/nginx/nginx.conf
# Entrypoint.sh # Entrypoint.sh
COPY entrypoint.sh /root/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# Expose ports # Expose ports
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443
# Fetch repo # Fetch repo
CMD ["/usr/bin/bash", "entrypoint.sh"] CMD ["entrypoint.sh"]
# #
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]