Start nginx in dockerfile
parent
ba260ba118
commit
56d995fddc
11
Dockerfile
11
Dockerfile
|
|
@ -18,5 +18,12 @@ RUN if [ ! -f "$SSH_KEY_PATH" ]; then \
|
|||
cat $SSH_KEY_PATH.pub; \
|
||||
fi
|
||||
|
||||
# Example command to run when the container starts
|
||||
CMD ["echo", "Container is running"]
|
||||
# Nginx configuration
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
# Start nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Loading…
Reference in New Issue