AutoMod/bot/Dockerfile

14 lines
329 B
Docker
Raw Normal View History

2021-12-09 23:00:49 +01:00
FROM node:16 AS build
2021-10-10 20:11:03 +02:00
WORKDIR /build/
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
2021-12-09 23:01:36 +01:00
FROM node:16 as prod
2021-10-10 20:11:03 +02:00
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"]