Skip to content

Commit 8976e1f

Browse files
committed
Various fixes
1 parent 051cee5 commit 8976e1f

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM php:7.1-fpm-alpine
33
RUN apk add --no-cache --virtual .persistent-deps \
44
git \
55
icu-libs \
6-
make \
6+
make \
77
zlib
88

99
ENV APCU_VERSION 5.1.8
@@ -29,8 +29,7 @@ COPY docker/app/install-composer.sh /usr/local/bin/docker-app-install-composer
2929
RUN chmod +x /usr/local/bin/docker-app-install-composer
3030

3131
RUN set -xe \
32-
&& apk add --no-cache --virtual .fetch-deps \
33-
openssl \
32+
&& apk add --no-cache --virtual .fetch-deps openssl \
3433
&& docker-app-install-composer \
3534
&& mv composer.phar /usr/local/bin/composer \
3635
&& apk del .fetch-deps
@@ -43,8 +42,7 @@ RUN composer global require "hirak/prestissimo:^0.3" --prefer-dist --no-progress
4342

4443
WORKDIR /srv/app
4544

46-
COPY composer.json ./
47-
COPY composer.lock ./
45+
COPY composer.* ./
4846

4947
RUN mkdir -p \
5048
var/cache \

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ services:
1111
- .env
1212
volumes:
1313
# Comment out the next line in production
14-
- ./:/srv/app:rw
14+
- ./:/srv/app/:rw
1515
# This is for assets:install
16-
- ./web:/srv/app/web:rw
16+
- ./web/:/srv/app/web/:rw
1717
# 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/
2323

2424
nginx:
2525
build:

docker/app/docker-entrypoint.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ if [ "${1#-}" != "$1" ]; then
77
fi
88

99
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
1511
composer install --prefer-dist --no-dev --no-progress --no-suggest --optimize-autoloader --classmap-authoritative --no-interaction
1612
else
1713
composer install --prefer-dist --no-progress --no-suggest --no-interaction

docker/nginx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM nginx:1.11-alpine
1+
FROM nginx:1.13-alpine
22

33
COPY conf.d /etc/nginx/conf.d/

0 commit comments

Comments
 (0)