File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ config/console-local.php
66runtime /
77web /assets /
88vendor /
9+ var /
Original file line number Diff line number Diff line change 1- # This is the Dockerfile to build the production image.
2- # It's not used for local development.
3-
4- # Set this to the version of your base image
1+ # Application image
2+ #
3+ # This image adds the application source to the bas image
4+ #
55FROM yii2-base-myapp:1.0
66
77# Copy apache and PHP configuration for production into the image
@@ -11,8 +11,6 @@ COPY ./config/php/productive.ini /usr/local/etc/php/conf.d/productive.ini
1111# Copy the app code into the image
1212COPY . /var/www/html
1313
14- # The following directories are .dockerignored to not pollute the docker images
15- # with local logs and published assets from development. So we need to create
16- # empty dirs and set right permissions inside the container.
17- RUN mkdir runtime web/assets \
18- && chown www-data:www-data runtime web/assets
14+ # Create required directories listed in .dockerignore
15+ RUN mkdir -p runtime web/assets var/session \
16+ && chown www-data:www-data runtime web/assets var/sessions
You can’t perform that action at this time.
0 commit comments