countapi/Dockerfile

15 lines
276 B
Docker
Raw Permalink Normal View History

2020-08-01 05:36:12 +03:00
FROM ubuntu
COPY requirements.txt /
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python3.6 python3-pip
RUN pip3 install -r /requirements.txt
EXPOSE 8000
2020-07-30 16:28:42 +03:00
COPY ./app /app
2020-08-01 05:36:12 +03:00
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]