From b0fe12f594e86ca1432b21242cfe55ec05725a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sun, 21 Jun 2020 22:59:17 +0200 Subject: [PATCH] Reuse build cache in bite docker --- docker/django/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docker/django/Dockerfile b/docker/django/Dockerfile index 2c60e75..ac1647f 100644 --- a/docker/django/Dockerfile +++ b/docker/django/Dockerfile @@ -13,12 +13,11 @@ RUN apk update && apk add --no-cache postgresql-libs \ | tar -xz -C /usr/local/bin COPY --from=builder /usr/local/lib/python3.8/site-packages/ /usr/local/lib/python3.8/site-packages/ COPY --chown=1000:1000 bite /srv/app/bite -COPY --chown=1000:1000 requirements.txt /tmp/requirements.txt +COPY --chown=1000:1000 requirements.txt /srv/app/bite/requirements.txt -RUN mkdir -p /srv/appdata/bite/static \ - && chown -R 1000:1000 /srv/appdata/bite \ - && pip3 install -r /tmp/requirements.txt \ - && rm /tmp/requirements.txt +RUN pip3 install -r /srv/app/bite/requirements.txt \ + && mkdir -p /srv/appdata/bite/static \ + && chown -R 1000:1000 /srv/appdata/bite USER 1000:1000 WORKDIR /srv/app/bite