Add Dockerfile

This commit is contained in:
Vincent BRIDIER 2023-04-26 09:49:27 +02:00
parent fa24157e68
commit 59c5dbdae7
No known key found for this signature in database
GPG key ID: 8571BFA20420D512
2 changed files with 9 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
.git
*.md

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
FROM registry.s-web.fr/ldc-web/projets/ldc-web-images-docker/ldcweb-production-8.2:latest
COPY --chown=www-data:www-data . /app/srcs
COPY --chown=www-data:www-data ./public/build /app/srcs/public/build
COPY --chown=www-data:www-data ./vendor /app/srcs/vendor
USER root
RUN chmod -R 755 /app/srcs/storage
USER www-data