tornado-relayer/Dockerfile

29 lines
561 B
Docker
Raw Permalink Normal View History

FROM node:16-alpine as dev
ENV NODE_ENV=development
WORKDIR /usr/app
COPY yarn.lock .
COPY package.json .
2022-07-26 10:09:26 +02:00
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
2022-08-02 07:46:14 +02:00
RUN yarn install
2022-06-29 12:02:30 +02:00
COPY . ./
2019-07-18 15:22:56 +02:00
RUN yarn build
2022-06-29 12:02:30 +02:00
FROM node:16-alpine as prod
ENV NODE_ENV=production
WORKDIR /app
2022-07-26 10:09:26 +02:00
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
2022-06-29 12:02:30 +02:00
2022-07-28 09:29:03 +02:00
COPY --from=dev /usr/app/ /app
COPY --from=dev /usr/app/package.json /app/
COPY --from=dev /usr/app/yarn.lock /app/
2022-08-02 06:42:51 +02:00
RUN yarn install && yarn cache clean -f
2022-07-04 13:56:05 +02:00
ENTRYPOINT ["yarn"]