From 4f1e842b7ce69e0c6e427a15b9461d4fde062861 Mon Sep 17 00:00:00 2001 From: leehk Date: Sun, 13 Apr 2025 08:36:14 +0800 Subject: [PATCH] update --- app/backend/Dockerfile.prod | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/backend/Dockerfile.prod b/app/backend/Dockerfile.prod index 62119ef..1f90c7d 100644 --- a/app/backend/Dockerfile.prod +++ b/app/backend/Dockerfile.prod @@ -3,7 +3,7 @@ ########### # pull official base image -FROM python:3.11-alpine as builder +FROM python:3.11-slim-bookworm AS builder # set working directory @@ -14,12 +14,10 @@ ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # install system dependencies -RUN apt-get update \ - && apt-get -y install build-essential \ +RUN apt-get update && apt-get -y install build-essential \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* - # install python dependencies RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip COPY ./Pipfile . @@ -37,7 +35,7 @@ COPY . /usr/src/app ######### # pull official base image -FROM python:3.11-alpine +FROM python:3.11-slim-bookworm # create directory for the app user RUN mkdir -p /home/app