This commit is contained in:
Daniel Hougaard
2024-11-08 10:58:26 +04:00
parent 1d3dca11e7
commit 98fd146e85
2 changed files with 14 additions and 74 deletions

View File

@@ -72,6 +72,13 @@ RUN addgroup --system --gid 1001 nodejs \
WORKDIR /app
# Required for pkcs11js
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
COPY backend/package*.json ./
RUN npm ci --only-production
@@ -85,6 +92,13 @@ FROM base AS backend-runner
WORKDIR /app
# Required for pkcs11js
RUN apt-get update && apt-get install -y \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
COPY backend/package*.json ./
RUN npm ci --only-production