Files
Yumi/Dockerfile
T

23 lines
450 B
Docker
Raw Normal View History

2022-02-02 22:07:33 +07:00
FROM debian
2022-02-02 21:16:40 +07:00
RUN mkdir -p /home/node/app/node_modules
WORKDIR /home/node/app
COPY package*.json ./
COPY prisma ./prisma/
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 prisma generate
COPY . .
RUN yarn build
CMD [ "yarn", "start"]