This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
consumer-api/Dockerfile

14 lines
320 B
Docker
Raw Permalink Normal View History

2020-03-29 17:08:53 +02:00
FROM python:3.8-slim
2020-03-09 16:51:00 +01:00
2020-03-29 17:08:53 +02:00
ADD consumer_api requirements.txt /consumer_api/
WORKDIR /consumer_api/
2020-03-09 16:51:00 +01:00
2020-03-29 17:08:53 +02:00
ENV PIP_NO_CACHE_DIR=true
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2020-03-09 16:51:00 +01:00
2020-03-29 17:08:53 +02:00
RUN pip3 install -r requirements.txt
2020-03-09 17:41:31 +01:00
2020-04-01 00:28:04 +02:00
EXPOSE 80
CMD ["gunicorn", "-b", "0.0.0.0:80", "app:app"]