File size: 354 Bytes
99d341e
 
7047035
87117c4
 
7047035
87117c4
 
7047035
99d341e
 
 
87117c4
 
 
99d341e
 
87117c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use a base image with Node.js installed
FROM node:14-alpine

# Set the working directory inside the container
WORKDIR /app

# Copy the HTML file to the container
COPY index.html .

# Install http-server globally
RUN npm install -g http-server

# Expose port 8080
EXPOSE 8080

# Set the entry point to run http-server
CMD ["http-server", "-p", "8080"]