mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
Dockerfile updates
Shorten docker build times by copying the package.json separately. Install dependencies with npm ci Update node to the new LTS: 14
This commit is contained in:
parent
dc3b97b50c
commit
295b374dc8
1 changed files with 4 additions and 3 deletions
|
@ -1,8 +1,9 @@
|
|||
FROM node:12-alpine
|
||||
FROM node:14-alpine
|
||||
|
||||
COPY . /opt/app
|
||||
WORKDIR /opt/app
|
||||
RUN npm install --production
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --production
|
||||
COPY . .
|
||||
|
||||
ENV PORT=80
|
||||
EXPOSE 80
|
||||
|
|
Loading…
Reference in a new issue