mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 10:45:27 +00:00
mogus vented
This commit is contained in:
parent
e869d3b67c
commit
6b0f9f421d
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