fix(build): install git for pinned SDK

This commit is contained in:
Junyan Qin
2026-07-24 19:29:14 +08:00
parent 98f45aa88e
commit e8a09b7537
+2 -2
View File
@@ -38,7 +38,7 @@ COPY --from=node /app/web/dist ./web/dist
COPY --from=nsjail-build /usr/local/bin/nsjail /usr/local/bin/nsjail COPY --from=nsjail-build /usr/local/bin/nsjail /usr/local/bin/nsjail
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc ca-certificates curl gnupg \ && apt-get install -y --no-install-recommends gcc ca-certificates curl git gnupg \
# nsjail runtime libraries (the build toolchain stays in the nsjail-build # nsjail runtime libraries (the build toolchain stays in the nsjail-build
# stage; only these shared libs are needed to execute the binary). # stage; only these shared libs are needed to execute the binary).
&& apt-get install -y --no-install-recommends libprotobuf32 libnl-route-3-200 \ && apt-get install -y --no-install-recommends libprotobuf32 libnl-route-3-200 \
@@ -63,7 +63,7 @@ RUN apt-get update \
&& rm -f /tmp/nodesource_setup.sh \ && rm -f /tmp/nodesource_setup.sh \
&& python -m pip install --no-cache-dir uv \ && python -m pip install --no-cache-dir uv \
&& uv sync \ && uv sync \
&& apt-get purge -y --auto-remove curl gnupg \ && apt-get purge -y --auto-remove curl git gnupg \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& touch /.dockerenv && touch /.dockerenv