From b6f312d48454be598aeff6e0509b8c76b59ae4e4 Mon Sep 17 00:00:00 2001 From: JohannesBOT Date: Fri, 29 May 2026 19:57:19 +0200 Subject: [PATCH] test --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index b3ea87d..559f872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,18 @@ FROM nginx:stable-alpine as production-stage RUN rm -rf /usr/share/nginx/html/* # Copy built files COPY --from=build /app/dist /usr/share/nginx/html + +# openssl is needed to generate the self-signed certificate on first start. +RUN apk add --no-cache openssl + +COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY docker/40-self-signed-ssl.sh /docker-entrypoint.d/40-self-signed-ssl.sh +RUN chmod +x /docker-entrypoint.d/40-self-signed-ssl.sh + +COPY --from=build /app/dist /usr/share/nginx/html + +EXPOSE 443 + # Copy custom nginx configuration COPY nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80