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 eef0a47 commit 7a98ca6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ FROM node:20-alpine AS build

WORKDIR /app

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 @@ -17,7 +28,6 @@ ENV npm_config_cache /home/node/.npm

COPY package*.json ./

# install build dependencies including python3
RUN apk --update add \
alpine-sdk \
autoconf \
Expand Down

0 comments on commit 7a98ca6

Please sign in to comment.