summaryrefslogtreecommitdiff
path: root/contrib/nginx
diff options
context:
space:
mode:
authorMichiK <6341204+der-michik@users.noreply.github.com>2018-12-04 02:27:10 +0100
committermsquare <msquare@notrademark.de>2018-12-07 16:56:51 +0100
commit2b03e21f3def4cf6f0ecef79d8bedd4d801b9f45 (patch)
tree439d915f385c0a5c7ba69c1f7e7b683600dd63bf /contrib/nginx
parent1801a8446413e8cda54393f23162fb951bcacc0a (diff)
Improve Docker build caching
First install the dependencies, then copy the files from the build context into the image. This allows for more caching during rebuilds when files change and rebuilds are much faster.
Diffstat (limited to 'contrib/nginx')
-rw-r--r--contrib/nginx/Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/nginx/Dockerfile b/contrib/nginx/Dockerfile
index e838d368..609792c0 100644
--- a/contrib/nginx/Dockerfile
+++ b/contrib/nginx/Dockerfile
@@ -1,8 +1,8 @@
FROM node:8-alpine as themes
WORKDIR /app
+RUN apk add --no-cache yarn
COPY resources/assets/ /app/resources/assets
COPY .babelrc package.json webpack.config.js /app/
-RUN apk add --no-cache yarn
RUN yarn install
RUN yarn build