Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,20 +1,20 @@
|
|
| 1 |
-
# Use a lightweight Node.js image
|
| 2 |
FROM node:18-bullseye
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
# Set correct permissions
|
| 10 |
-
RUN chmod -R 777 /app
|
| 11 |
|
| 12 |
# Install project dependencies
|
| 13 |
-
WORKDIR /app
|
| 14 |
RUN npm install
|
| 15 |
|
| 16 |
-
# Expose
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
-
# Start the application
|
| 20 |
CMD ["node", "server.js"]
|
|
|
|
| 1 |
+
# Use a lightweight Node.js image with necessary build tools
|
| 2 |
FROM node:18-bullseye
|
| 3 |
|
| 4 |
+
# Install system dependencies (git is required for cloning)
|
| 5 |
+
RUN apt-get update && apt-get install -y git
|
| 6 |
+
|
| 7 |
# Set working directory
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
+
# Clone repository (ensure correct structure)
|
| 11 |
+
RUN git clone https://github.com/BNNUSA/Binace-Clone.git . # Note the '.' at end
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Install project dependencies
|
|
|
|
| 14 |
RUN npm install
|
| 15 |
|
| 16 |
+
# Expose the correct port (verify your application's port)
|
| 17 |
EXPOSE 7860
|
| 18 |
|
| 19 |
+
# Start the application (verify entry file location)
|
| 20 |
CMD ["node", "server.js"]
|