From 6aa6e126808c7c1ee31484e182010b95ed01deca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Mon, 31 Jan 2022 19:09:03 +0100 Subject: [PATCH] Fix error handling when building image Apparently, we managed to publish an image without working aiohttp because of this. Partially a regression from 5d7183a. --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cab80d1..cf74ab0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,8 @@ COPY babel.cfg /opt/snikket-web-portal/babel.cfg WORKDIR /opt/snikket-web-portal -RUN pip3 install -r requirements.txt; \ +RUN set -eu; \ + pip3 install -r requirements.txt; \ pip3 install -r build-requirements.txt; \ make; @@ -47,7 +48,7 @@ RUN set -eu; \ WORKDIR /opt/snikket-web-portal COPY requirements.txt /opt/snikket-web-portal/requirements.txt -RUN pip3 install -r requirements.txt; rm -rf /root/.cache; +RUN set -eu; pip3 install -r requirements.txt; rm -rf /root/.cache; COPY --from=build /opt/snikket-web-portal/snikket_web/ /opt/snikket-web-portal/snikket_web COPY babel.cfg /opt/snikket-web-portal/babel.cfg