You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+13-13
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@ FROM php:7.3-apache
3
3
# set main params
4
4
ARG BUILD_ARGUMENT_DEBUG_ENABLED=false
5
5
ENV DEBUG_ENABLED=$BUILD_ARGUMENT_DEBUG_ENABLED
6
-
ARGBUILD_ARGUMENT_APP_ENV=dev
7
-
ENVAPP_ENV=$BUILD_ARGUMENT_APP_ENV
6
+
ARGBUILD_ARGUMENT_ENV=dev
7
+
ENVENV=$BUILD_ARGUMENT_ENV
8
8
ENV APP_HOME /var/www/html
9
9
10
10
# check environment
11
-
RUN if [ "$BUILD_ARGUMENT_APP_ENV" = "default" ]; then echo "Set BUILD_ARGUMENT_APP_ENV in docker build-args like --build-arg BUILD_ARGUMENT_APP_ENV=dev" && exit 2; \
12
-
elif [ "$BUILD_ARGUMENT_APP_ENV" = "dev" ]; then echo "Building development environment."; \
13
-
elif [ "$BUILD_ARGUMENT_APP_ENV" = "test" ]; then echo "Building test environment."; \
14
-
elif [ "$BUILD_ARGUMENT_APP_ENV" = "prod" ]; then echo "Building production environment."; \
15
-
else echo "Set correct BUILD_ARGUMENT_APP_ENV in docker build-args like --build-arg BUILD_ARGUMENT_APP_ENV=dev. Available choices are dev,test,prod." && exit 2; \
11
+
RUN if [ "$BUILD_ARGUMENT_ENV" = "default" ]; then echo "Set BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev" && exit 2; \
12
+
elif [ "$BUILD_ARGUMENT_ENV" = "dev" ]; then echo "Building development environment."; \
13
+
elif [ "$BUILD_ARGUMENT_ENV" = "test" ]; then echo "Building test environment."; \
14
+
elif [ "$BUILD_ARGUMENT_ENV" = "prod" ]; then echo "Building production environment."; \
15
+
else echo "Set correct BUILD_ARGUMENT_ENV in docker build-args like --build-arg BUILD_ARGUMENT_ENV=dev. Available choices are dev,test,prod." && exit 2; \
16
16
fi
17
17
18
18
# install all the dependencies and enable PHP modules
@@ -55,7 +55,7 @@ RUN chown -R www-data:www-data $APP_HOME
0 commit comments