-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (30 loc) · 893 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM enhavo/enhavo-app:7.4-apache-0.3
WORKDIR /var/www/current
ENV APP_ENV prod
COPY .env .env
COPY assets assets
COPY bin bin
COPY config config
COPY fixtures fixtures
COPY migrations migrations
COPY public public
COPY src src
COPY templates templates
COPY translations translations
COPY composer.json composer.json
COPY composer.lock composer.lock
COPY package.json package.json
COPY symfony.lock symfony.lock
COPY tsconfig.json tsconfig.json
COPY webpack.config.js webpack.config.js
COPY yarn.lock yarn.lock
COPY docker/my_init.d/03_env.bash /etc/my_init.d/03_env.bash
COPY docker/my_init.d/04_init.bash /etc/my_init.d/04_init.bash
RUN apt-get install -y wait-for-it && \
chmod 744 /etc/my_init.d/03_env.bash && \
chmod 744 /etc/my_init.d/04_init.bash && \
composer install && \
yarn install && \
yarn routes:dump && \
yarn encore prod && \
chown www-data:www-data -R var