Commit f200d592 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

gunicorn in last layer

parent a225342f
Pipeline #69012 passed with stage
in 3 minutes and 6 seconds
......@@ -2,13 +2,13 @@ FROM python:3.9-slim AS build
RUN apt-get update && apt-get install -y python3-dev libpq-dev build-essential
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
RUN pip3 install --no-cache-dir gunicorn
FROM python:3.9-slim
MAINTAINER RESIF DC <resif-dc@univ-grenoble-alpes.fr>
RUN apt-get update && apt-get -y install gnupg
COPY setup/gpghome /gpghome
COPY --from=build /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages
RUN pip3 install --no-cache-dir gunicorn
COPY eidawsauth/ /app/
WORKDIR /app
CMD ["gunicorn", "-b", "0.0.0.0:8000", "eidawsauth"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment