triflix commited on
Commit
17ab777
·
verified ·
1 Parent(s): 6db9944

Rename Dockerfile1 to Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +28 -0
  2. Dockerfile1 +0 -12
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # set working dir
4
+ WORKDIR /app
5
+
6
+ # install system deps (for pandas/numpy build)
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ build-essential \
9
+ gcc \
10
+ libpq-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # copy files
14
+ COPY pipeline_with_agents.py /app/pipeline_with_agents.py
15
+ COPY app.py /app/app.py
16
+ COPY requirements.txt /app/requirements.txt
17
+
18
+ # install python deps
19
+ RUN pip install --no-cache-dir --upgrade pip \
20
+ && pip install --no-cache-dir -r /app/requirements.txt
21
+
22
+ # create uploads dir (HuggingFace Spaces friendly /tmp usage)
23
+ RUN mkdir -p /tmp/uploads && chmod 777 /tmp/uploads
24
+
25
+ EXPOSE 7860
26
+
27
+ # run uvicorn on 0.0.0.0:7860
28
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
Dockerfile1 DELETED
@@ -1,12 +0,0 @@
1
- FROM python:3.12-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- COPY . .
9
-
10
- EXPOSE 7860
11
-
12
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]