# 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 7860 | |
EXPOSE 7860 | |
# Set the entry point to run http-server | |
CMD ["http-server", "-p", "7860"] | |