Files
docker-inventaire/nginx/Dockerfile.nginx
maxlath 0e31506126 replace shared volume between the inventaire and nginx services by a multi-stage copy
See https://docs.docker.com/build/building/multi-stage/#use-an-external-image-as-a-stage

The shared volume was making updates complicated, as the persisted volume data would not be overriden by the new container
2025-06-29 19:19:03 +02:00

9 lines
518 B
Nginx Configuration File

FROM nginx:1.28
RUN [ ! -f /etc/nginx/dhparam.pem ] && openssl dhparam -out /etc/nginx/dhparam.pem 2048
RUN mkdir -p /tmp/nginx/tmp /tmp/nginx/resize/img/users /tmp/nginx/resize/img/groups /tmp/nginx/resize/img/entities /tmp/nginx/resize/img/remote /tmp/nginx/resize/img/assets /var/cache/nginx/client_temp /opt/inventaire/client && chown -R nginx:nginx /tmp/nginx /opt
# See https://docs.docker.com/build/building/multi-stage/
COPY --from=inventaire/inventaire:latest /opt/inventaire/client /opt/inventaire/client