forked from LexicForLXD/Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 859 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
35
FROM janrtr/docker-symfony-php7-composer:3.7
RUN apk --no-cache add git php7-simplexml php7-ssh2
ADD /app /www/symfony/app
#Add parameters.yml for Docker
ADD /docker/parameters.yml /www/symfony/app/config/parameters.yml
ADD /bin /www/symfony/bin
ADD /src /www/symfony/src
ADD /var /www/symfony/var
ADD /web /www/symfony/web
ADD /composer.json /www/symfony/composer.json
ADD /composer.lock /www/symfony/composer.lock
#Add cert volume
RUN mkdir -p /srv/lexic
RUN chown -R www:www /srv/lexic
# Add phpunit
RUN wget https://phar.phpunit.de/phpunit.phar
RUN chmod +x phpunit.phar
RUN mv phpunit.phar /usr/local/bin/phpunit
WORKDIR /www/symfony
ENV SYMFONY_ENV=dev
RUN chown -R www:www /www
# Configure supervisord
COPY docker/config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN composer install --no-interaction
RUN chown -R www:www /www