diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2019-06-14 08:45:42 +0300 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2019-06-14 08:47:09 +0300 |
commit | de084f5b1581ac4e23f8dc507308f6e5a4d61590 (patch) | |
tree | 4bfe18ed9a9a4badaf8f7c96d04d9d8567f76ed8 | |
parent | 7a8c84b4af5b07686f78e2b644c8157b879fc431 (diff) |
Improve Dockerfile
Change order so layers can be cached more properly.
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,15 +1,14 @@ FROM composer:1.7 -ADD . /src/app/ -WORKDIR /src/app - ENV TINI_VERSION 0.18.0-r0 -RUN \ - apk add --no-cache tini=$TINI_VERSION && \ - composer install && \ - cp includes/config.environment.inc.php includes/config.inc.php +RUN apk add --no-cache tini=$TINI_VERSION +RUN composer install -EXPOSE 80 +ADD . /src/app/ + +RUN cp includes/config.environment.inc.php includes/config.inc.php +WORKDIR /src/app +EXPOSE 80 ENTRYPOINT [ "tini", "--", "php", "-S", "0.0.0.0:80" ] |