countapi/Dockerfile
philip306 9330d7a103 asuh
2020-07-31 22:36:12 -04:00

15 lines
276 B
Docker

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
COPY ./app /app
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]