mogus vented
This commit is contained in:
parent
e869d3b67c
commit
6b0f9f421d
1 changed files with 13 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:14 AS build
|
||||||
|
WORKDIR /build/
|
||||||
|
COPY package.json yarn.lock ./
|
||||||
|
RUN yarn install --frozen-lockfile
|
||||||
|
COPY . .
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
FROM node:14 as prod
|
||||||
|
WORKDIR /app/
|
||||||
|
COPY --from=build /build/package.json /build/yarn.lock ./
|
||||||
|
COPY --from=build /build/dist ./dist
|
||||||
|
RUN yarn install --production --frozen-lockfile
|
||||||
|
CMD ["yarn", "start"]
|
Loading…
Reference in a new issue