Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Does this work?
Browse files Browse the repository at this point in the history
  • Loading branch information
CorySanin committed Sep 5, 2023
1 parent 891e89a commit 681b1e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ WORKDIR /usr/src/app
COPY package*.json ./

ENV NPM_CONFIG_LOGLEVEL warn
RUN apk add --no-cache make g++ && \
RUN npm ci --only=production || (\
apk add --no-cache make g++ && \
apk add --no-cache vips-cpp vips-dev --repository https://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
npm install -g node-gyp
RUN npm ci --only=production || npm ci --only=production --build-from-source
npm install -g node-gyp && \
npm ci --only=production --build-from-source )

COPY . .

Expand All @@ -22,7 +23,8 @@ EXPOSE 8080

WORKDIR /usr/src/app

RUN apk add --no-cache openssl vips curl && \
RUN apk add --no-cache openssl curl && \
apk add --no-cache vips-cpp vips-dev --repository https://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
chown -R node:node .

COPY --from=install /usr/src/app /usr/src/app/
Expand Down

0 comments on commit 681b1e0

Please sign in to comment.