Docker workflow (#24)

This commit is contained in:
Cullen Watson
2023-08-28 12:15:13 -05:00
committed by GitHub
parent 9eb14a74a3
commit b9b7754703
6 changed files with 153 additions and 59 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.10-slim
WORKDIR /app
COPY . /app
RUN apt-get update && \
apt-get install -y jq && \
pip install --no-cache-dir -r requirements.txt
EXPOSE 8000
ENV PORT=8000
CMD sh -c "uvicorn main:app --host 0.0.0.0 --port $PORT"