mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Create Dockerfile
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
|||||||
|
FROM ubuntu
|
||||||
|
|
||||||
|
RUN mkdir -p /home/node/app/node_modules
|
||||||
|
WORKDIR /home/node/app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
COPY prisma ./prisma/
|
||||||
|
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get -y install curl gnupg git python2 make g++ iputils-ping
|
||||||
|
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"]
|
||||||
Reference in New Issue
Block a user