Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +20 -20
Dockerfile
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
FROM python:3.11-slim
|
2 |
-
|
3 |
-
# Install Tkinter dependencies
|
4 |
-
RUN apt-get update && apt-get install -y \
|
5 |
-
tk \
|
6 |
-
&& apt-get clean \
|
7 |
-
&& rm -rf /var/lib/apt/lists/*
|
8 |
-
|
9 |
-
WORKDIR /app
|
10 |
-
|
11 |
-
COPY requirements.txt .
|
12 |
-
RUN pip install --no-cache-dir -r requirements.txt \
|
13 |
-
&& pip install torch --index-url https://download.pytorch.org/whl/cpu \
|
14 |
-
&& pip install sentence-transformers
|
15 |
-
|
16 |
-
COPY . .
|
17 |
-
|
18 |
-
EXPOSE
|
19 |
-
|
20 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
+
|
3 |
+
# Install Tkinter dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
tk \
|
6 |
+
&& apt-get clean \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
WORKDIR /app
|
10 |
+
|
11 |
+
COPY requirements.txt .
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt \
|
13 |
+
&& pip install torch --index-url https://download.pytorch.org/whl/cpu \
|
14 |
+
&& pip install sentence-transformers
|
15 |
+
|
16 |
+
COPY . .
|
17 |
+
|
18 |
+
EXPOSE 7860
|
19 |
+
|
20 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|