Start nginx in dockerfile

main
Andre 2024-03-25 10:53:49 +01:00
parent ba260ba118
commit 56d995fddc
1 changed files with 9 additions and 2 deletions

View File

@ -18,5 +18,12 @@ RUN if [ ! -f "$SSH_KEY_PATH" ]; then \
cat $SSH_KEY_PATH.pub; \ cat $SSH_KEY_PATH.pub; \
fi fi
# Example command to run when the container starts # Nginx configuration
CMD ["echo", "Container is running"] COPY nginx.conf /etc/nginx/nginx.conf
# Expose ports
EXPOSE 80
EXPOSE 443
# Start nginx
CMD ["nginx", "-g", "daemon off;"]