You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
fosspay-docker/Dockerfile

22 lines
468 B

FROM python:3.8-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
make \
gcc \
git \
python3-dev \
libffi-dev \
libpq-dev \
libyaml-dev
ADD src/requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
ADD src /fosspay
RUN cd /fosspay && \
make
ENV GUNICORN_CMD_ARGS "--bind 0.0.0.0:5000 --workers 2 --chdir /fosspay"
CMD ["/usr/local/bin/gunicorn", "app:app"]