diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..530f74a --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file