test
Build and Deploy / build (push) Successful in 30s
Build and Deploy / deploy (push) Successful in 20s

This commit is contained in:
2026-05-29 19:57:19 +02:00
parent 6cc15b1a98
commit b6f312d484
+12
View File
@@ -21,6 +21,18 @@ FROM nginx:stable-alpine as production-stage
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
# Copy built files # Copy built files
COPY --from=build /app/dist /usr/share/nginx/html 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 custom nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80 EXPOSE 80