From 691b4b0fc9b4ee5d6355e8642be9ee5e19d363e7 Mon Sep 17 00:00:00 2001 From: vermaas <vermaas@astron.nl> Date: Tue, 7 Feb 2023 09:26:12 +0100 Subject: [PATCH] fixing package dependencies --- atdb/Dockerfile | 20 ++++++++++---------- atdb/requirements/base.txt | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/atdb/Dockerfile b/atdb/Dockerfile index feaec65b..b73ef51f 100644 --- a/atdb/Dockerfile +++ b/atdb/Dockerfile @@ -1,16 +1,16 @@ -FROM python:3.10-slim -RUN apt-get update && apt-get install --no-install-recommends -y bash nano mc libmagic1 git - +FROM python:3.6.7-alpine +ENV PYTHONUNBUFFERED 1 +RUN apk update && apk add bash && apk add nano && apk add mc RUN mkdir /src WORKDIR /src COPY . /src/ -RUN pip install --upgrade pip -RUN pip install -r requirements/prod.txt - -RUN python manage.py collectstatic --settings=adex_backend.settings.dev --noinput +# install dependencies +RUN \ + apk add --no-cache python3 postgresql-libs && \ + apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev postgresql-dev && \ + pip install -r requirements/prod.txt && \ + apk --purge del .build-deps # run gunicorn -CMD exec gunicorn atdb.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4 --timeout 120 - - +CMD exec gunicorn atdb.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4 diff --git a/atdb/requirements/base.txt b/atdb/requirements/base.txt index f110b69e..6c70ce08 100644 --- a/atdb/requirements/base.txt +++ b/atdb/requirements/base.txt @@ -1,4 +1,4 @@ -asgiref==3.5.2 +asgiref==3.4.1 astronauth==0.3.3 certifi==2022.12.7 cffi==1.15.1 -- GitLab