This commit is contained in:
2025-07-29 00:58:18 +01:00
parent daa92c4c41
commit 891e398882
9 changed files with 363 additions and 1 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# Use Node.js 18 alpine as base image for smaller size
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY app/package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
COPY app/ .
# Build the application
RUN npm run build
# Install a simple HTTP server to serve the built files
RUN npm install -g serve
# Expose port 8080
EXPOSE 8080
# Start the application on port 8080
CMD ["serve", "-s", "dist", "-l", "8080"]