AutoMod/bridge/Dockerfile

19 lines
519 B
Docker
Raw Normal View History

2022-04-18 21:16:12 +02:00
FROM node:16 as build
2022-07-12 18:07:17 +02:00
WORKDIR /build/app
COPY bridge/package.json bridge/yarn.lock bridge/.yarnrc.yml ./
COPY bridge/.yarn ./.yarn
COPY lib ../lib
2022-07-15 17:57:40 +02:00
RUN yarn --cwd ../lib build
2022-07-09 07:18:03 +02:00
RUN yarn install --immutable
2022-07-12 18:07:17 +02:00
COPY ./bridge .
2022-04-18 21:16:12 +02:00
RUN yarn build
FROM node:16 as prod
2022-07-12 18:07:17 +02:00
WORKDIR /app/bridge
COPY --from=build /build/app/package.json /build/app/yarn.lock /build/app/.yarnrc.yml ./
COPY --from=build /build/app/.yarn ./.yarn
COPY --from=build /build/app/dist ./dist
COPY ./lib ../lib
2022-07-09 07:18:03 +02:00
RUN yarn install --immutable
2022-04-18 21:16:12 +02:00
CMD ["yarn", "start"]