Skip to content
Snippets Groups Projects
Commit f694ffbf authored by Nico Vermaas's avatar Nico Vermaas
Browse files

fixing package dependencies

parent 691b4b0f
No related branches found
No related tags found
1 merge request!276Astronauth integration
Pipeline #43726 failed
FROM python:3.6.7-alpine FROM python:3.10-slim
ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install --no-install-recommends -y bash nano mc libmagic1 git
RUN apk update && apk add bash && apk add nano && apk add mc
RUN mkdir /src RUN mkdir /src
WORKDIR /src WORKDIR /src
COPY . /src/ COPY . /src/
# install dependencies RUN pip install --upgrade pip
RUN \ RUN pip install -r requirements/prod.txt
apk add --no-cache python3 postgresql-libs && \
apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev postgresql-dev && \ RUN python manage.py collectstatic --settings=atdb.settings.dev --noinput
pip install -r requirements/prod.txt && \
apk --purge del .build-deps
# run gunicorn # run gunicorn
CMD exec gunicorn atdb.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4 CMD exec gunicorn atdb.wsgi_docker_sdc:application --bind 0.0.0.0:8000 --workers 4 --timeout 120
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment