dockerisation app
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
22
misc/docker/Dockerfile
Normal file
22
misc/docker/Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
FROM reg.cadoles.com/envole/nineapache:8.1
|
||||
|
||||
RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/crontabs/root
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
|
||||
RUN yarn install
|
||||
RUN yarn encore dev
|
||||
RUN yarn encore prod
|
||||
|
||||
RUN mkdir -p /app/public/uploads
|
||||
RUN chown apache /app/public/uploads -R
|
||||
RUN chmod u+w /app/public/uploads -R
|
||||
|
||||
RUN mkdir -p /app/var
|
||||
RUN chown apache /app/var -R
|
||||
RUN chmod u+w /app/var -R
|
||||
|
||||
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh
|
||||
#CMD /etc/apache2/apache2.sh
|
Reference in New Issue
Block a user