From e28d5f26582439d480a0d88d1a34cedb10976ca5 Mon Sep 17 00:00:00 2001 From: Vladimir Zagainov Date: Mon, 12 Jan 2026 16:38:31 +0300 Subject: [PATCH] build: add Dockerfile for multi-stage build --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ee611f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Build stage +FROM node:18-alpine as build-stage +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +RUN npm run build + +# Production stage +FROM nginx:stable-alpine as production-stage +COPY --from=build-stage /app/dist /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"]