gohorsejobs/job-scraper-multisite/Dockerfile
2025-12-24 17:46:57 -03:00

25 lines
586 B
Docker

# =============================================================================
# GoHorse Jobs Scraper - Python Dockerfile
# =============================================================================
FROM mirror.gcr.io/library/python:3.12-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy source
COPY . .
# Security: Run as non-root
RUN useradd -m -u 1001 scraper && \
chown -R scraper:scraper /app
USER scraper
# Create output directory
RUN mkdir -p /app/output
CMD ["python", "main_scraper.py"]