🐋 chore: Revise of PR #2157, move step earlier

This commit is contained in:
Danny Avila 2024-03-21 12:28:40 -04:00 committed by GitHub
parent 09de9a2b42
commit 3f77fe18b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,8 @@
# Base node image
FROM node:18-alpine AS node
RUN apk add g++ make py3-pip
RUN mkdir -p /app && chown node:node /app
WORKDIR /app
@ -12,10 +14,8 @@ COPY --chown=node:node . .
# values.
RUN touch .env
RUN npm config set fetch-retry-maxtimeout 300000
RUN apk add g++ make py3-pip
RUN npm install -g node-gyp
RUN apk --no-cache add curl && \
npm install --no-audit