Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use an official Node.js image as the base
|
| 2 |
+
FROM node:18-alpine
|
| 3 |
+
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install web-terminal globally
|
| 8 |
+
RUN npm install -g web-terminal
|
| 9 |
+
|
| 10 |
+
# Expose the port on which web-terminal will run
|
| 11 |
+
EXPOSE 8088
|
| 12 |
+
|
| 13 |
+
# Define the default command to run web-terminal on port 8088
|
| 14 |
+
CMD ["web-terminal", "--port", "8088"]
|