Akashmj22122002 commited on
Commit
876ed24
·
1 Parent(s): a25f84b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -5,11 +5,11 @@ RUN apt-get update && apt-get install -y unzip
5
 
6
  WORKDIR /app
7
 
8
- # Copy everything
9
  COPY . .
10
 
11
- # 🛠️ UPDATED: We will name the new zip 'final_deploy.zip' to clear cache
12
- RUN unzip -o final_deploy.zip && rm final_deploy.zip
13
 
14
  # Install backend dependencies
15
  RUN cd Section_two/backend && npm install
@@ -25,5 +25,5 @@ ENV PORT=7860
25
  ENV NODE_ENV=production
26
  EXPOSE 7860
27
 
28
- # 🛠️ UPDATED: Explicitly passing the port to the node command
29
  CMD ["sh", "-c", "PORT=7860 node Section_two/backend/index.js"]
 
5
 
6
  WORKDIR /app
7
 
8
+ # Copy everything from the Space (including Section_one.zip)
9
  COPY . .
10
 
11
+ # 🛠️ UPDATED: Fixed filename to match what you actually uploaded
12
+ RUN unzip -o Section_one.zip && rm Section_one.zip
13
 
14
  # Install backend dependencies
15
  RUN cd Section_two/backend && npm install
 
25
  ENV NODE_ENV=production
26
  EXPOSE 7860
27
 
28
+ # Start the server and explicitly bind to 0.0.0.0 and Port 7860
29
  CMD ["sh", "-c", "PORT=7860 node Section_two/backend/index.js"]