old-automod/bot/Dockerfile

14 lines
329 B
Docker
Raw Permalink Normal View History

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