From a48644b381bbf31048ab1a9cee669116e2a3e065 Mon Sep 17 00:00:00 2001 From: Project_IO Date: Thu, 10 Oct 2024 14:23:55 +0900 Subject: [PATCH] build: add dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b06365a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.11-alpine3.20 + +WORKDIR /app + +RUN apk update \ + && apk add --no-cache postgresql-dev gcc musl-dev make py3-uvloop \ + && pip install -U pip setuptools wheel Cython + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 8000 + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"] +