mirror of
https://github.com/janderedev/automod.git
synced 2024-12-22 18:55:28 +00:00
14 lines
329 B
Docker
14 lines
329 B
Docker
|
FROM node:16 as build
|
||
|
WORKDIR /build/
|
||
|
COPY package.json yarn.lock ./
|
||
|
RUN yarn install --frozen-lockfile
|
||
|
COPY . .
|
||
|
RUN yarn build
|
||
|
|
||
|
FROM node:16 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"]
|