fooder-api/Dockerfile

14 lines
271 B
Docker
Raw Normal View History

2023-04-01 16:19:12 +02:00
from python
2023-04-01 16:24:51 +02:00
RUN apt-get -y install libpq-dev
2023-04-01 16:19:12 +02:00
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN mkdir /opt/fooder
WORKDIR /opt/fooder
COPY fooder /opt/fooder/fooder
CMD ["uvicorn", "fooder.app:app", "--host", "0.0.0.0", "--port", "8000"]