added dockerfiles

This commit is contained in:
2025-03-16 15:25:22 +01:00
parent 42768fbdbe
commit 71e705f7c1
8 changed files with 38 additions and 35 deletions
+21
View File
@@ -0,0 +1,21 @@
# Use official Node.js image
FROM node:18-alpine
# Install pnpm globally
RUN npm install -g pnpm
WORKDIR /app
# Copy package manager files first for caching
COPY package.json pnpm-lock.yaml ./
# Install dependencies using pnpm
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
EXPOSE 3004
CMD ["pnpm", "start", "--port", "3004"]