added copy and execution of entrypoint.sh

main
Andre 2024-03-25 11:47:02 +01:00
parent efbb9d7ede
commit 498b397cfc
1 changed files with 5 additions and 1 deletions

View File

@ -20,10 +20,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
COPY entrypoint.sh /root/entrypoint.sh
# Expose ports # Expose ports
EXPOSE 80 EXPOSE 80
EXPOSE 443 EXPOSE 443
# Start nginx # Fetch repo
CMD ["/usr/bin/bash", "entrypoint.sh"]
#
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]