Files
RPG_Utilities/Dockerfile
T
2025-07-08 05:08:10 +01:00

24 lines
390 B
Docker

# Use the official Node.js image as base
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Install a simple HTTP server to serve the built files
RUN npm install -g serve
# Start the application
CMD ["serve", "-s", "dist"]