From 063340eb252e5ff913f8165c9436de7b3216226c Mon Sep 17 00:00:00 2001 From: Irori235 Date: Thu, 14 Mar 2024 22:55:19 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fix=20Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef0d44e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM node:20 AS builder + +WORKDIR /app +COPY ./package.json ./package-lock.json ./ +RUN npm ci --only=prod +COPY . . + +RUN npm run build + +FROM nginx:alpine +COPY --from=builder /app/dist /usr/share/nginx/html + +EXPOSE 80 +CMD [ "nginx", "-g", "daemon off;" ]