Spaces:
Sleeping
Sleeping
Commit
·
0c1b325
1
Parent(s):
1a975f5
updated
Browse files- Dockerfile +7 -10
Dockerfile
CHANGED
@@ -1,21 +1,18 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# Stage 2: Create the final application image
|
4 |
FROM python:3.11-slim
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
7 |
# Install Python dependencies
|
8 |
COPY requirements.txt .
|
9 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
10 |
-
RUN apt install wget
|
11 |
|
12 |
# Copy the backend code
|
13 |
COPY . .
|
14 |
|
15 |
-
RUN
|
16 |
-
# Expose the port the app runs on
|
17 |
-
EXPOSE 7860
|
18 |
|
|
|
19 |
|
20 |
-
|
21 |
-
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
1 |
FROM python:3.11-slim
|
2 |
WORKDIR /app
|
3 |
|
4 |
+
# Install wget
|
5 |
+
RUN apt update && apt install -y wget
|
6 |
+
|
7 |
# Install Python dependencies
|
8 |
COPY requirements.txt .
|
9 |
+
# RUN pip install --no-cache-dir -r requirements.txt
|
|
|
10 |
|
11 |
# Copy the backend code
|
12 |
COPY . .
|
13 |
|
14 |
+
RUN chmod +x ./setup.sh && ./setup.sh
|
|
|
|
|
15 |
|
16 |
+
EXPOSE 7860
|
17 |
|
18 |
+
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|
|