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
marcsello 9c046b63d9
All checks were successful
continuous-integration/drone/push Build is passing
Created app skeleton
2020-03-29 17:08:53 +02:00

14 lines
324 B
Docker

FROM python:3.8-slim
ADD consumer_api requirements.txt /consumer_api/
WORKDIR /consumer_api/
ENV PIP_NO_CACHE_DIR=true
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN pip3 install -r requirements.txt
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]