mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-08 20:57:45 +02:00
fix:#52 added log rotation and anonymized
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user