24 lines
415 B
Docker
24 lines
415 B
Docker
# Resource Provider (Node.js) Dockerfile
|
|
FROM node:22-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install pnpm globally
|
|
RUN npm install -g pnpm
|
|
|
|
# Copy package.json and pnpm-lock.yaml
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
|
|
# Install dependencies
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
# Copy the rest of the application
|
|
COPY . .
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Start the Node.js application
|
|
CMD ["node", "server.js"]
|