Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(docker): drop the source tree and recommended packages from the image

Vlad Ligai2c7eec976da1
diff --git a/Dockerfile.standalone-infisical b/Dockerfile.standalone-infisical
index 3140247a4f..7897f0edcb 100644
--- a/Dockerfile.standalone-infisical
+++ b/Dockerfile.standalone-infisical
@@ -166,7 +166,7 @@ RUN apt-get update && apt-get install -y \
RUN printf "[FreeTDS]\nDescription = FreeTDS Driver\nDriver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so\nSetup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so\nFileUsage = 1\n" > /etc/odbcinst.ini
COPY --from=backend-build /app .
-RUN rm -rf ./node_modules ./bdd ./e2e-test
+RUN rm -rf ./node_modules ./bdd ./e2e-test ./src
COPY --from=backend-prod-deps /app/node_modules ./node_modules
RUN mkdir frontend-build
@@ -199,7 +199,7 @@ FROM base AS production
# Runtime dependencies only. The PQC OpenSSL toolchain lives in
# openssl-pqc-builder; nothing here compiles.
-RUN apt-get update && apt-get install -y \
+RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
bash \
curl \