From fd6995b71ac34fcb9d7dd806c69ff441b7065007 Mon Sep 17 00:00:00 2001 From: kalicyh <34980061+kaliCYH@users.noreply.github.com> Date: Tue, 6 Aug 2024 06:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1dfb75b..baa07ab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ COPY pyproject.toml poetry.lock README.md ./ # Install dependencies using Poetry RUN poetry config virtualenvs.create false && poetry install --no-dev -FROM python:3.12-slim AS runtime +FROM python:3.12-alpine AS runtime WORKDIR /app COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages COPY --from=builder /usr/local/bin/ /usr/local/bin/ @@ -37,6 +37,7 @@ COPY api/ ./api # Copy the built Vue.js app into the FastAPI image COPY --from=build /app/dist /app/dist +RUN pip install uvicorn # Set environment variable ENV DATABASE_URL=