Attempt at a dockerfile

This commit is contained in:
2023-02-19 03:02:37 +00:00
parent 0a036e259c
commit a03970745b

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.10-alpine
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
#
COPY . /code/app
ENTRYPOINT ["alembic", "upgrade", "head"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"]