mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
Improve docker build caching
This commit is contained in:
parent
35d9a21c5d
commit
19a02e1166
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
@ -25,6 +25,12 @@ ARG NGINX_PORT=8080
|
||||||
# See more: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
# See more: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
|
||||||
ENV TZ="America/New_York"
|
ENV TZ="America/New_York"
|
||||||
|
|
||||||
|
RUN apk add gettext --no-cache
|
||||||
|
|
||||||
|
# The following lines import all Dockerfiles from other folders so that they can be built together in the final build
|
||||||
|
INCLUDE+ docker/php/php.dockerfile
|
||||||
|
INCLUDE+ docker/server/nginx.dockerfile
|
||||||
|
|
||||||
# Include docker scripts, docker images, and the 'GNU License' in the Librex container
|
# Include docker scripts, docker images, and the 'GNU License' in the Librex container
|
||||||
ADD "." "/var/www/html"
|
ADD "." "/var/www/html"
|
||||||
|
|
||||||
|
@ -34,12 +40,6 @@ RUN chmod u+x "${DOCKER_SCRIPTS}/php/prepare.sh" &&\
|
||||||
chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\
|
chmod u+x "${DOCKER_SCRIPTS}/entrypoint.sh" &&\
|
||||||
chmod u+x "${DOCKER_SCRIPTS}/attributes.sh"
|
chmod u+x "${DOCKER_SCRIPTS}/attributes.sh"
|
||||||
|
|
||||||
RUN apk add gettext --no-cache
|
|
||||||
|
|
||||||
# The following lines import all Dockerfiles from other folders so that they can be built together in the final build
|
|
||||||
INCLUDE+ docker/php/php.dockerfile
|
|
||||||
INCLUDE+ docker/server/nginx.dockerfile
|
|
||||||
|
|
||||||
EXPOSE ${NGINX_PORT}
|
EXPOSE ${NGINX_PORT}
|
||||||
|
|
||||||
# Configures the container to be run as an executable.
|
# Configures the container to be run as an executable.
|
||||||
|
|
Loading…
Add table
Reference in a new issue