All checks were successful
Build & Push Docker Image / build-and-publish (push) Successful in 13s
25 lines
478 B
Docker
25 lines
478 B
Docker
FROM python:3.11-slim
|
|
|
|
# Install cron and timezone handling
|
|
RUN apt-get update && \
|
|
apt-get install -y cron tzdata && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create app directory
|
|
WORKDIR /app
|
|
|
|
# Copy the Python script
|
|
COPY update_channel_logos.py /app/
|
|
|
|
# Copy the entrypoint script
|
|
COPY entrypoint.sh /app/
|
|
|
|
# Make the entrypoint executable
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
# Set timezone (can be overridden)
|
|
ENV TZ=UTC
|
|
|
|
# Run the entrypoint
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|