mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
35 lines
813 B
Docker
35 lines
813 B
Docker
FROM debian AS build
|
|
WORKDIR /home/node/app
|
|
|
|
COPY . .
|
|
RUN DEBIAN_FRONTEND=noninteractive
|
|
|
|
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
|
|
|
|
RUN yarn
|
|
RUN yarn build
|
|
|
|
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
|
|
|
|
COPY --from=build /home/node/app/build .
|
|
|
|
CMD [ "node", "index.js"] |