dockerisation
This commit is contained in:
18
misc/docker/Dockerfile
Normal file
18
misc/docker/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM reg.cadoles.com/envole/nineapache:7.4
|
||||
RUN apk add mariadb-client
|
||||
|
||||
RUN composer self-update --1
|
||||
|
||||
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
|
||||
|
||||
CMD /app/misc/script/reconfigure.sh && /etc/apache2/apache2.sh
|
||||
#CMD /etc/apache2/apache2.sh
|
15
misc/script/reconfigure.sh
Executable file
15
misc/script/reconfigure.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
# Se positionner sur la racine du projet
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
cd ${DIR}
|
||||
cd ../..
|
||||
DIR=$(pwd)
|
||||
|
||||
# Installation des dépendances composer
|
||||
composer install --no-interaction
|
||||
|
||||
bin/console d:s:u --force --complete
|
||||
|
||||
exec $@
|
Reference in New Issue
Block a user