From 41f452ed738c1bf2b47ecb10a14d6987e7fb1915 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 2 Dec 2020 14:05:21 +0900 Subject: [PATCH] Pinning package versions in Dockerfile --- Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34bd3fb0..6ac3c7a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,18 +6,24 @@ COPY frontend/ /frontend/ WORKDIR /frontend ENV PUBLIC_PATH="/static/_nuxt/" +# hadolint ignore=DL3018 RUN apk add -U --no-cache git python3 make g++ \ - && yarn install \ - && yarn build \ - && apk del --no-cache git make g++ + && yarn install \ + && yarn build \ + && apk del --no-cache git make g++ FROM python:${PYTHON_VERSION}-slim-buster AS backend-builder -RUN apt-get update && \ - apt-get install -y --no-install-recommends netcat libpq-dev unixodbc-dev g++ && \ - apt-get clean +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + netcat=1.10-41.1 \ + libpq-dev=11.9-0+deb10u1 \ + unixodbc-dev=2.3.6-0.1 \ + g++=4:8.3.0-1 \ + && apt-get clean COPY /app/requirements.txt / +# hadolint ignore=DL3013 RUN pip install --no-cache-dir -U pip \ && pip install --no-cache-dir -r /requirements.txt \ && pip wheel --no-cache-dir -r /requirements.txt -w /deps