update - with versions
This commit is contained in:
23
resource-provider/Dockerfile
Normal file
23
resource-provider/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
# Resource Provider (Node.js) Dockerfile
|
||||
FROM node:20-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"]
|
||||
Reference in New Issue
Block a user