From 2a8007e2f4d3a434fb126a5ae17e3d6c59f71960 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Wed, 2 Feb 2022 21:16:40 +0700 Subject: [PATCH] Create Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fadd0ba --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file