Archived
added dockerfiles
This commit is contained in:
+21
@@ -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"]
|
||||
Reference in New Issue
Block a user