Dockerfile: use official image from Node.js

This commit is contained in:
liushuyu 2021-10-22 01:55:04 -06:00
parent 058205854e
commit bfdc66218c
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -1,4 +1,4 @@
FROM mhart/alpine-node:latest AS build FROM node:16-alpine AS build
# Create app directory # Create app directory
WORKDIR /usr/src/app WORKDIR /usr/src/app
@ -9,7 +9,7 @@ COPY src/ ./src
RUN yarn install && yarn build && rm -f dist/*.map RUN yarn install && yarn build && rm -f dist/*.map
# Second stage # Second stage
FROM mhart/alpine-node:latest FROM node:16-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app