From 56d995fddcd1af6df635aa9f8c167bfcb170bdd5 Mon Sep 17 00:00:00 2001 From: Andre Date: Mon, 25 Mar 2024 10:53:49 +0100 Subject: [PATCH] Start nginx in dockerfile --- Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d11819..190099b 100644 --- a/Dockerfile +++ b/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"] \ No newline at end of file +# Nginx configuration +COPY nginx.conf /etc/nginx/nginx.conf + +# Expose ports +EXPOSE 80 +EXPOSE 443 + +# Start nginx +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file