File tree 4 files changed +12
-18
lines changed
4 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ FROM php:7.1-fpm-alpine
3
3
RUN apk add --no-cache --virtual .persistent-deps \
4
4
git \
5
5
icu-libs \
6
- make \
6
+ make \
7
7
zlib
8
8
9
9
ENV APCU_VERSION 5.1.8
@@ -29,8 +29,7 @@ COPY docker/app/install-composer.sh /usr/local/bin/docker-app-install-composer
29
29
RUN chmod +x /usr/local/bin/docker-app-install-composer
30
30
31
31
RUN set -xe \
32
- && apk add --no-cache --virtual .fetch-deps \
33
- openssl \
32
+ && apk add --no-cache --virtual .fetch-deps openssl \
34
33
&& docker-app-install-composer \
35
34
&& mv composer.phar /usr/local/bin/composer \
36
35
&& apk del .fetch-deps
@@ -43,8 +42,7 @@ RUN composer global require "hirak/prestissimo:^0.3" --prefer-dist --no-progress
43
42
44
43
WORKDIR /srv/app
45
44
46
- COPY composer.json ./
47
- COPY composer.lock ./
45
+ COPY composer.* ./
48
46
49
47
RUN mkdir -p \
50
48
var/cache \
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ services:
11
11
- .env
12
12
volumes :
13
13
# Comment out the next line in production
14
- - ./:/srv/app:rw
14
+ - ./:/srv/app/ :rw
15
15
# This is for assets:install
16
- - ./web:/srv/app/web:rw
16
+ - ./web/ :/srv/app/web/ :rw
17
17
# If you develop on Linux, comment out the following volumes to just use bind-mounted project directory from host
18
- - /srv/app/var
19
- - /srv/app/var/cache
20
- - /srv/app/var/logs
21
- - /srv/app/var/sessions
22
- - /srv/app/vendor
18
+ - /srv/app/var/
19
+ - /srv/app/var/cache/
20
+ - /srv/app/var/logs/
21
+ - /srv/app/var/sessions/
22
+ - /srv/app/vendor/
23
23
24
24
nginx :
25
25
build :
Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ if [ "${1#-}" != "$1" ]; then
7
7
fi
8
8
9
9
if [ " $1 " = ' php-fpm' ] || [ " $1 " = ' bin/console' ]; then
10
- # Detect the host IP
11
- export DOCKER_BRIDGE_IP
12
- DOCKER_BRIDGE_IP=$( ip ro | grep default | cut -d' ' -f 3)
13
-
14
- if [ " $SYMFONY_ENV " = ' prod' ]; then
10
+ if [ " $APP_ENV " = ' prod' ]; then
15
11
composer install --prefer-dist --no-dev --no-progress --no-suggest --optimize-autoloader --classmap-authoritative --no-interaction
16
12
else
17
13
composer install --prefer-dist --no-progress --no-suggest --no-interaction
Original file line number Diff line number Diff line change 1
- FROM nginx:1.11 -alpine
1
+ FROM nginx:1.13 -alpine
2
2
3
3
COPY conf.d /etc/nginx/conf.d/
You can’t perform that action at this time.
0 commit comments