diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c2148b4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# Build stage +FROM node:20-alpine AS build +WORKDIR /app +COPY package*.json ./ +RUN npm install +COPY . . +RUN npm run build + +# Production stage +FROM node:20-alpine +WORKDIR /app +RUN npm install -g serve +COPY --from=build /app/dist ./dist +EXPOSE 3000 +CMD ["serve", "-s", "dist", "-l", "3000"]