summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorMathijs van Gorcum <mvgorcum@gmail.com>2018-09-10 14:02:42 +0000
committerGitHub <noreply@github.com>2018-09-10 14:02:42 +0000
commite586916cda1f3549bd9ebab2e75d3824840c76a0 (patch)
tree2e90c9b5e8a6bc3275f0af1f16eaf81ae97f5107 /docker
parentRemove build requirements after building (diff)
downloadsynapse-e586916cda1f3549bd9ebab2e75d3824840c76a0.tar.xz
Move COPY before RUN and merge RUNs
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index f6da05f4ef..b9f0acccc3 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,5 +1,7 @@
 FROM docker.io/python:2-alpine3.8
 
+COPY . /synapse
+
 RUN apk add --no-cache --virtual .nacl_deps \
         build-base \
         libffi-dev \
@@ -9,12 +11,10 @@ RUN apk add --no-cache --virtual .nacl_deps \
         linux-headers \
         postgresql-dev \
         su-exec \
-        zlib-dev
-
-COPY . /synapse
-
+        zlib-dev \
+   
 # A wheel cache may be provided in ./cache for faster build
-RUN cd /synapse \
+ && cd /synapse \
  && pip install --upgrade \
         lxml \
         pip \