fix:#52 added log rotation and anonymized

This commit is contained in:
Elmar Kresse
2024-09-29 23:33:45 +02:00
parent 5ce70983f2
commit f3bfe603b3
5 changed files with 29 additions and 4 deletions

View File

@@ -35,8 +35,13 @@ COPY . ./
# https://hub.docker.com/r/bitnami/nginx -> always run as non-root user
FROM bitnami/nginx:1.25 AS prod
USER root
RUN install_packages logrotate
USER 1001
# copy build files from build container
COPY --from=build /app/dist /app
COPY ./nginx.conf /opt/bitnami/nginx/conf/nginx.conf
COPY nginx-logrotate /etc/logrotate.d/nginx
EXPOSE 8000