Files
Yumi/Dockerfile
T

37 lines
865 B
Docker
Raw Normal View History

2022-03-05 22:21:33 +07:00
FROM debian AS build
2022-02-02 21:16:40 +07:00
WORKDIR /home/node/app
2022-03-05 22:21:33 +07:00
COPY . .
2022-02-02 22:07:33 +07:00
RUN DEBIAN_FRONTEND=noninteractive
2022-02-02 21:16:40 +07:00
RUN apt-get update -y
2022-02-02 22:07:33 +07:00
RUN apt-get -y install curl gnupg git python2 make g++ iputils-ping ffmpeg
2022-02-02 21:16:40 +07:00
RUN curl -sL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get -y install nodejs
RUN npm i -g yarn
RUN yarn
RUN yarn build
2022-03-05 22:21:33 +07:00
FROM debian
WORKDIR /home/node/app
RUN apt-get update -y
RUN apt-get -y install curl gnupg git python2 make g++ iputils-ping ffmpeg
RUN curl -sL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get -y install nodejs
RUN npm i -g yarn
COPY --from=build /home/node/app/package.json .
COPY --from=build /home/node/app/yarn.lock .
RUN yarn
COPY --from=build /home/node/app/prisma ./prisma/
RUN yarn prisma generate
2022-06-07 03:08:27 +07:00
COPY --from=build /home/node/app/locales ./locales/
2022-03-06 21:48:14 +07:00
COPY --from=build /home/node/app/dist .
2022-03-05 22:21:33 +07:00
CMD [ "node", "index.js"]