transcriptor-gdrive-sync/docker/id_loader/Dockerfile
2025-04-02 05:39:44 +02:00

19 lines
628 B
Docker

FROM python:3.9-slim
WORKDIR /app
# Install required system packages including MariaDB development headers and gcc
RUN apt-get update && \
apt-get install -y curl rclone bash unzip libmariadb-dev gcc && \
rm -rf /var/lib/apt/lists/*
# Copy requirements file (if you have one) and install Python dependencies
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
# Copy application code, the entrypoint script, and channels.json
COPY gdrive_id_loader.py .
COPY rclone.conf /root/.config/rclone/rclone.conf
COPY service_account.json .
# Default command
CMD ["python", "-u", "gdrive_id_loader.py"]