# 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"]