From a03970745b3f80a56f2aeab54f8018c58c5c2268 Mon Sep 17 00:00:00 2001 From: Kevin ANATOLE Date: Sun, 19 Feb 2023 03:02:37 +0000 Subject: [PATCH] Attempt at a dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile 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