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

Correct dockerfile

parent 0c82416f
Pipeline #85562 passed with stage
in 1 minute and 11 seconds
FROM python:3.10-slim AS build
RUN apt-get update && apt-get install -y python3-dev libpq-dev build-essential
RUN apt-get update && apt-get install -y libpq-dev build-essential
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
FROM python:3.10-slim
RUN apt-get update && apt-get -y install gnupg libpq5
COPY setup/gpghome /gpghome
COPY --from=build /usr/local/lib/python3.9/site-packages/ /usr/local/lib/python3.9/site-packages
COPY --from=build /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages
RUN pip3 install --no-cache-dir gunicorn
COPY eidawsauth/ /app/
WORKDIR /app
USER 1000
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