18 lines
587 B
Docker
18 lines
587 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 pip install --no-cache-dir mariadb
|
|
|
|
# Copy application code, the entrypoint script, and channels.json
|
|
COPY gdrive_id_loader.py .
|
|
COPY rclone.conf /root/.config/rclone/rclone.conf
|
|
# Default command
|
|
CMD ["python", "-u", "gdrive_id_loader.py"] |