Spaces:
Sleeping
Sleeping
Commit ·
876ed24
1
Parent(s): a25f84b
Update Dockerfile
Browse files- 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:
|
| 12 |
-
RUN unzip -o
|
| 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 |
-
#
|
| 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"]
|