Merge pull request #352 from louis-lau:dockerfile-improvement

Seperate package.json copy  in dockerfile for cached builds
This commit is contained in:
Louis Laureys 2021-09-12 17:05:04 +02:00 committed by GitHub
commit 1234496f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,9 +3,12 @@ FROM node:lts-alpine
RUN apk add --no-cache make git dumb-init python openssl
WORKDIR /wildduck
COPY package*.json ./
RUN npm install --production
COPY . .
RUN npm install --production
ENV WILDDUCK_APPDIR=/wildduck \
WILDDUCK_CONFIG=/wildduck/config/default.toml \