Skip to content

Commit 8cfa09e

Browse files
author
liq
committed
fix: 影响构建的命令
1 parent dc31c79 commit 8cfa09e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

api/Dockerfile

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# base image
2-
FROM python:3.10.14-slim-bullseye AS base
2+
FROM python:3.10-slim-bookworm AS base
33

44
WORKDIR /app/api
55

@@ -16,7 +16,7 @@ ENV POETRY_VIRTUALENVS_CREATE=true
1616
FROM base AS packages
1717

1818
RUN apt-get update \
19-
&& apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libmpfr-dev libmpc-dev telnetd
19+
&& apt-get install -y --no-install-recommends gcc g++ libc-dev libffi-dev libgmp-dev libmpfr-dev libmpc-dev
2020

2121
# Install Python dependencies
2222
COPY pyproject.toml poetry.lock ./
@@ -42,12 +42,12 @@ WORKDIR /app/api
4242

4343
RUN apt-get update \
4444
&& apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc-dev \
45-
# && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
45+
&& echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list \
4646
&& apt-get update \
4747
# For Security
4848
&& apt-get install -y --no-install-recommends zlib1g=1:1.3.dfsg+really1.3.1-1 expat=2.6.2-1 libldap-2.5-0=2.5.18+dfsg-2 perl=5.38.2-5 libsqlite3-0=3.46.0-1 \
49-
&& apt-get autoremove -y
50-
# && rm -rf /var/lib/apt/lists/*
49+
&& apt-get autoremove -y \
50+
&& rm -rf /var/lib/apt/lists/*
5151

5252
# Copy Python environment and packages
5353
ENV VIRTUAL_ENV=/app/api/.venv
@@ -65,4 +65,4 @@ RUN chmod +x /entrypoint.sh
6565
ARG COMMIT_SHA
6666
ENV COMMIT_SHA=${COMMIT_SHA}
6767

68-
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
68+
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]

0 commit comments

Comments
 (0)