C13 / Dockerfile
iozxv's picture
Update Dockerfile
2525df9 verified
Raw
History Blame Contribute Delete
551 Bytes
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"]