Docker speedbuild
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-12 18:26:49 +01:00
parent 4da3cea59f
commit 36ce64a79d
2 changed files with 29 additions and 4 deletions

View File

@@ -1,14 +1,15 @@
FROM registry.odit.services/hub/library/node:17.0.1-alpine3.14
ARG NPM_REGISTRY_DOMAIN=registry.npmjs.org
ARG NPM_REGISTRY_TOKEN=null
WORKDIR /app
COPY package.json .
# COPY yarn.lock .
RUN yarn --production --frozen-lockfile
RUN npm config set registry https://$NPM_REGISTRY_DOMAIN && npm config set //$NPM_REGISTRY_DOMAIN/:_authToken $NPM_REGISTRY_TOKEN
RUN npm i -g pnpm && pnpm i
COPY migrations ./migrations
COPY src ./src
COPY knexfile.js ./
RUN mkdir db
#
# FROM astefanutti/scratch-node:16.0.0
FROM registry.odit.services/hub/library/node:17.0.1-alpine3.14
WORKDIR /app
COPY --from=0 /app /app