My first basic loadBalancer

This commit is contained in:
2026-01-29 19:05:51 +02:00
commit 5e9b137d3f
7 changed files with 333 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Use the official Node.js 18 image as the base image
FROM node:18-alpine
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json .
# Install project dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Expose port 3000 for the application
EXPOSE 3000
# Start the application
CMD ["node", "server.js"]