iozxv commited on
Commit
7712e66
·
verified ·
1 Parent(s): 2f14ce4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -11
Dockerfile CHANGED
@@ -1,17 +1,22 @@
1
- FROM python:3.11-slim
2
 
3
- WORKDIR /app
 
 
 
 
 
 
4
 
5
- ENV PYTHONUNBUFFERED=1
6
 
7
- COPY app.py .
 
8
 
9
- RUN pip install --no-cache-dir \
10
- duckdb \
11
- flask \
12
- psutil \
13
- huggingface_hub
14
 
15
- EXPOSE 7860
16
 
17
- CMD ["python", "-u", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install Tor, curl, and build essentials
4
+ RUN apt-get update && apt-get install -y \
5
+ tor \
6
+ torsocks \
7
+ curl \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ WORKDIR /app
12
 
13
+ # Install Python dependencies
14
+ RUN pip install --no-cache-dir requests beautifulsoup4 huggingface_hub
15
 
16
+ # Copy application scripts
17
+ COPY entrypoint.sh /app/entrypoint.sh
18
+ COPY sync.py /app/sync.py
 
 
19
 
20
+ RUN chmod +x /app/entrypoint.sh
21
 
22
+ CMD ["/app/entrypoint.sh"]