Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -13,8 +13,11 @@ WORKDIR /app
|
|
| 13 |
# Install dependencies (if using Node.js)
|
| 14 |
RUN npm install # Remove this if your project doesn't use npm
|
| 15 |
|
|
|
|
|
|
|
|
|
|
| 16 |
# Expose the necessary port (modify based on your API)
|
| 17 |
EXPOSE 8080
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
CMD ["node", "index.js"]
|
|
|
|
| 13 |
# Install dependencies (if using Node.js)
|
| 14 |
RUN npm install # Remove this if your project doesn't use npm
|
| 15 |
|
| 16 |
+
# Ensure the script is executable
|
| 17 |
+
RUN chmod +x index.js
|
| 18 |
+
|
| 19 |
# Expose the necessary port (modify based on your API)
|
| 20 |
EXPOSE 8080
|
| 21 |
|
| 22 |
+
# Use 'node' to run the script
|
| 23 |
+
CMD ["node", "index.js"]
|