This commit is contained in:
Ryan Cao 2022-05-21 15:21:49 +08:00
parent 9bf42c0cbf
commit 7950e23236
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F

View file

@ -1,11 +1,11 @@
FROM node:18-alpine as build-image
FROM node:17-alpine as build-image
WORKDIR /app
COPY package.json yarn.lock .
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
FROM node:18-alpine
FROM node:17-alpine
WORKDIR /app
COPY --from=build-image /app/index.js /app/index.js
EXPOSE 3000