Create Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use lightweight Node.js Alpine image
|
2 |
+
FROM node:18-alpine
|
3 |
+
|
4 |
+
# Set working directory
|
5 |
+
WORKDIR /app
|
6 |
+
|
7 |
+
# Copy server file
|
8 |
+
COPY server.js .
|
9 |
+
|
10 |
+
# Expose port (default for HTTP)
|
11 |
+
EXPOSE 3000
|
12 |
+
|
13 |
+
# Run the server
|
14 |
+
CMD ["node", "server.js"]
|