Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a base image with Node.js installed
|
| 2 |
+
FROM node:14-alpine
|
| 3 |
+
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy the HTML file to the container
|
| 8 |
+
COPY index.html .
|
| 9 |
+
|
| 10 |
+
# Install http-server globally
|
| 11 |
+
RUN npm install -g http-server
|
| 12 |
+
|
| 13 |
+
# Expose port 7860
|
| 14 |
+
EXPOSE 7860
|
| 15 |
+
|
| 16 |
+
# Set the entry point to run http-server
|
| 17 |
+
CMD ["http-server", "-p", "7860"]
|
| 18 |
+
|