mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-10 01:48:38 +08:00
Merge pull request #352 from louis-lau:dockerfile-improvement
Seperate package.json copy in dockerfile for cached builds
This commit is contained in:
commit
1234496f6e
1 changed files with 4 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue