From b0766d3200e09663207b65cbe5d34afc1f6d38da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?wear=E5=B7=A5=E7=A8=8B=E5=B8=88?= <1225186748@qq.com> Date: Fri, 8 Dec 2023 11:21:05 +0800 Subject: [PATCH] chore: use docker alpine build and run --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6b5c79a..271aa73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,15 +7,15 @@ ENV VITE_IS_WEB_UI_MODE=true RUN yarn install && yarn build -FROM thehale/python-poetry as build-backend -RUN apt update && apt install -y binutils +FROM acidrain/python-poetry:3.12-alpine as build-backend +RUN apk add binutils WORKDIR /app COPY ./backend /app/ RUN poetry install --no-interaction RUN poetry run pyinstaller --clean --onefile --name backend main.py -FROM debian:bookworm-slim +FROM alpine:latest ENV FASTAPI_ENV=production ENV OPENAI_API_KEY= WORKDIR /app