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
6
6
runtime /
7
7
web /assets /
8
8
vendor /
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
+ #
5
5
FROM yii2-base-myapp:1.0
6
6
7
7
# 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
11
11
# Copy the app code into the image
12
12
COPY . /var/www/html
13
13
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