From e810135fc59eed1bde4b29f7b784f0e6d8798f7a Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 9 Feb 2026 10:17:48 +0300 Subject: [PATCH] feat: create Dockerfile --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3d1333 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Build stage +FROM node:20-alpine AS builder + +WORKDIR /app + +# Copy package files +COPY package.json yarn.lock ./ + +# Install dependencies +RUN yarn install --frozen-lockfile + +# Copy source code +COPY . . + +# Build the app +RUN yarn build + +# Production stage - just the built files +FROM alpine:latest + +WORKDIR /app + +# Copy built static files +COPY --from=builder /app/dist ./dist