File size: 551 Bytes
7712e66
2f14ce4
7712e66
 
 
 
 
 
 
2f14ce4
7712e66
2f14ce4
2525df9
 
2f14ce4
7712e66
 
 
2f14ce4
7712e66
2f14ce4
f8b1c7d
 
 
7712e66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM python:3.10-slim

# Install Tor, curl, and build essentials
RUN apt-get update && apt-get install -y \
    tor \
    torsocks \
    curl \
    git \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install Python dependencies including SOCKS support
RUN pip install --no-cache-dir requests[socks] beautifulsoup4 huggingface_hub pysocks

# Copy application scripts
COPY entrypoint.sh /app/entrypoint.sh
COPY sync.py /app/sync.py

RUN chmod +x /app/entrypoint.sh

# Expose mandatory Hugging Face port 7860
EXPOSE 7860

CMD ["/app/entrypoint.sh"]