Skip to content

Commit ea190ce

Browse files
author
workoverflow@ya.ru
committed
Remove useless ENV params
1 parent a171f0d commit ea190ce

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ FROM php:7.4-fpm-alpine AS app
22

33
# Define config vars
44
ENV APP_ENV=dev
5-
6-
ENV SYS_NGINX_DIR=/etc/nginx \
7-
SYS_PHP_DIR=/etc/php/7.4/ \
8-
SUPERVISOR_CONFIG=docker-config/supervisord/supervisord.conf \
9-
NGINX_CONFIG=docker-config/nginx/nginx.conf \
10-
HOST_CONFIG=docker-config/nginx/conf.d/default.conf \
11-
PHP_CONFIG=docker-config/php/${APP_ENV}.ini \
12-
FPM_CONFIG=docker-config/php/fpm.conf
5+
ENV SYS_NGINX_DIR=/etc/nginx
136

147
RUN apk update && apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
158
curl \
@@ -56,6 +49,7 @@ RUN apk update && apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
5649
# Install composer
5750
COPY --from=composer /usr/bin/composer /usr/bin/composer
5851

52+
# Copy source files to container
5953
COPY . /var/www/html
6054
WORKDIR /var/www/html
6155

@@ -66,11 +60,13 @@ COPY docker-config/nginx/conf.d/default.conf ${SYS_NGINX_DIR}/conf.d/default.con
6660
COPY docker-config/php/${APP_ENV}.ini /usr/local/etc/php/php.ini
6761
COPY docker-config/php/fpm.conf /usr/local/etc/php-fpm.d/www.conf
6862

69-
# Cleanup before start
63+
# Create dirs before start
7064
RUN mkdir /run/nginx && mkdir /run/supervisord
7165

7266
WORKDIR /var/www/html/app
7367

68+
# Use 80 port
7469
EXPOSE 80
7570

71+
# Start supervisor
7672
ENTRYPOINT ["/usr/bin/supervisord", "--pidfile=/run/supervisord/supervisord.pid"]

0 commit comments

Comments
 (0)