Merge pull request #4281 from Infisical/daniel/hsm-support-main-image

chore(hsm): add hsm support to main docker image
This commit is contained in:
Daniel Hougaard
2025-07-31 18:03:35 +04:00
committed by GitHub
+10
View File
@@ -55,6 +55,8 @@ USER non-root-user
## ##
FROM base AS backend-build FROM base AS backend-build
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
WORKDIR /app WORKDIR /app
# Install all required dependencies for build # Install all required dependencies for build
@@ -84,6 +86,8 @@ RUN npm run build
# Production stage # Production stage
FROM base AS backend-runner FROM base AS backend-runner
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
WORKDIR /app WORKDIR /app
# Install all required dependencies for runtime # Install all required dependencies for runtime
@@ -112,6 +116,11 @@ RUN mkdir frontend-build
FROM base AS production FROM base AS production
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \
autoconf \
automake \
libtool \
libssl-dev \
ca-certificates \ ca-certificates \
bash \ bash \
curl \ curl \
@@ -171,6 +180,7 @@ ENV NODE_ENV production
ENV STANDALONE_BUILD true ENV STANDALONE_BUILD true
ENV STANDALONE_MODE true ENV STANDALONE_MODE true
ENV NODE_OPTIONS="--max-old-space-size=1024" ENV NODE_OPTIONS="--max-old-space-size=1024"
ENV ChrystokiConfigurationPath=/usr/safenet/lunaclient/
WORKDIR /backend WORKDIR /backend