Files
Yumi/Dockerfile
T

41 lines
1017 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
2023-09-23 02:21:33 +07:00
RUN apt-get -y install curl gnupg git dh-python make g++ iputils-ping ffmpeg
2023-09-23 02:27:50 +07:00
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
2022-02-02 21:16:40 +07:00
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
2024-06-16 00:40:10 +07:00
RUN apt-get update -y
2024-06-16 00:43:15 +07:00
RUN apt-get -y install software-properties-common curl gnupg git dh-python make g++ iputils-ping ffmpeg python3-launchpadlib
2024-06-16 00:36:31 +07:00
RUN add-apt-repository ppa:tomtomtom/yt-dlp -y
2022-03-05 22:21:33 +07:00
RUN apt-get update -y
2024-06-16 00:40:10 +07:00
RUN apt-get -y install yt-dlp
2023-09-23 02:27:50 +07:00
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
2022-03-05 22:21:33 +07:00
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
2023-09-23 02:21:33 +07:00
CMD [ "node", "index.js"]