Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:18 # Change to your required base image
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Clone your repository from GitHub
|
| 6 |
+
RUN git clone https://github.com/jonellcc/jonellccprojectsapis.git /app
|
| 7 |
+
|
| 8 |
+
# Change to the repo directory
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
|
| 11 |
+
# Install dependencies if needed
|
| 12 |
+
RUN npm install # Remove if not using Node.js
|
| 13 |
+
|
| 14 |
+
# Expose port and start the server
|
| 15 |
+
EXPOSE 8080
|
| 16 |
+
CMD ["node", "index.js"] # Change this to your main script
|