File size: 354 Bytes
1271ead |
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 7860
EXPOSE 7860
# Set the entry point to run http-server
CMD ["http-server", "-p", "7860"]
|