Move COPY before RUN and merge RUNs

This commit is contained in:
Mathijs van Gorcum 2018-09-10 14:02:42 +00:00 committed by GitHub
parent b7e7712f07
commit e586916cda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,7 @@
FROM docker.io/python:2-alpine3.8 FROM docker.io/python:2-alpine3.8
COPY . /synapse
RUN apk add --no-cache --virtual .nacl_deps \ RUN apk add --no-cache --virtual .nacl_deps \
build-base \ build-base \
libffi-dev \ libffi-dev \
@ -9,12 +11,10 @@ RUN apk add --no-cache --virtual .nacl_deps \
linux-headers \ linux-headers \
postgresql-dev \ postgresql-dev \
su-exec \ su-exec \
zlib-dev zlib-dev \
COPY . /synapse
# A wheel cache may be provided in ./cache for faster build # A wheel cache may be provided in ./cache for faster build
RUN cd /synapse \ && cd /synapse \
&& pip install --upgrade \ && pip install --upgrade \
lxml \ lxml \
pip \ pip \