From 80559ecb71112d38c6f6ec38fc5eb8e1489c0439 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 17 Nov 2022 14:43:31 +0100 Subject: [PATCH] optimize caching --- setup/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/Dockerfile b/setup/Dockerfile index d6a5f083..7e04931a 100644 --- a/setup/Dockerfile +++ b/setup/Dockerfile @@ -6,16 +6,16 @@ FROM base ARG VERSION=local LABEL version=$VERSION +RUN set -euxo pipefail \ + ; apk add --no-cache libcap \ + ; setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn + COPY flavors /data/flavors COPY templates /data/templates COPY static ./static COPY server.py ./server.py COPY main.py ./main.py -RUN set -euxo pipefail \ - ; apk add --no-cache libcap \ - ; setcap 'cap_net_bind_service=+ep' /app/venv/bin/gunicorn - RUN echo $VERSION >> /version EXPOSE 80/tcp