Update Dockerfile.prod

This commit is contained in:
Hong Kai LEE 2025-04-13 11:17:27 +08:00 committed by GitHub
parent 4f1e842b7c
commit 8976b21a7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,9 +14,9 @@ ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# install system dependencies
RUN apt-get update && apt-get -y install build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# 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
@ -57,10 +57,10 @@ ENV ENVIRONMENT=prod
ENV TESTING=0
# install system dependencies
RUN apt-get update \
&& apt-get -y install build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# RUN apt-get update \
# && apt-get -y install build-essential \
# && apt-get clean \
#&& rm -rf /var/lib/apt/lists/*
# install python dependencies
COPY --from=builder /usr/src/app/Pipfile .