Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Oct 31, 2024
1 parent a8836f7 commit a9667c0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ FROM node:20-alpine AS build
WORKDIR /app

# Install python because pkcs11 package depends on it (it will refuse to build if python3 is not present)
RUN apk --update add python3
# install build dependencies including python3
RUN apk --update add \
# alpine-sdk \
# autoconf \
# automake \
# git \
# libtool \
# openssl-dev \
python3 \
make
# g++

COPY package*.json ./
RUN npm ci --only-production
Expand All @@ -20,7 +30,7 @@ ENV npm_config_cache /home/node/.npm

COPY package*.json ./

RUN apk --update add python3

RUN npm ci --only-production && npm cache clean --force

COPY --from=build /app .
Expand Down

0 comments on commit a9667c0

Please sign in to comment.