mirror of
https://github.com/truecharts/charts.git
synced 2026-07-07 18:03:58 -03:00
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | python | final | digest | `a70b35b` -> `9ba6d8c` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS43Ni4wIiwidXBkYXRlZEluVmVyIjoiNDEuNzYuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJhdXRvbWVyZ2UiLCJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL2RpZ2VzdCJdfQ==-->
39 lines
1.4 KiB
Docker
39 lines
1.4 KiB
Docker
FROM python:3.13-alpine@sha256:9ba6d8cbebf0fb6546ae71f2a1c14f6ffd2fdab83af7fa5669734ef30ad48844
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir requests beautifulsoup4 icalendar pytz
|
|
|
|
# Create working directory
|
|
WORKDIR /app
|
|
|
|
# Copy code
|
|
COPY --chmod=775 ./containers/apps/bfics/includes/balfolk_ical.py /app/balfolk_ical.py
|
|
COPY --chmod=775 ./containers/apps/bfics/includes/crontab.txt /app/crontab.txt
|
|
|
|
|
|
# Create output dir for serving
|
|
RUN touch /app/balfolk.ics
|
|
|
|
# Setup cron
|
|
RUN apk add --no-cache bash curl busybox-suid && \
|
|
echo "#!/bin/sh\ncrond -f -L /dev/stdout" > /start.sh && \
|
|
chmod +x /start.sh
|
|
|
|
# Install cron job
|
|
RUN crontab /app/crontab.txt
|
|
|
|
# Start cron and HTTP server
|
|
CMD sh -c "python3 /app/balfolk_ical.py && crond -f -L /dev/stdout & python3 -m http.server 8000 --directory /app"
|
|
|
|
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/containers"
|
|
|
|
ARG CONTAINER_NAME
|
|
ARG CONTAINER_VER
|
|
LABEL org.opencontainers.image.licenses="BSD-3-Clause"
|
|
LABEL org.opencontainers.image.title="${CONTAINER_NAME}"
|
|
LABEL org.opencontainers.image.url="https://truecharts.org/docs/charts/${CONTAINER_NAME}"
|
|
LABEL org.opencontainers.image.version="${CONTAINER_VER}"
|
|
LABEL org.opencontainers.image.description="Container for ${CONTAINER_NAME} by TrueCharts"
|
|
LABEL org.opencontainers.image.authors="TrueCharts"
|
|
LABEL org.opencontainers.image.documentation="https://truecharts.org/docs/charts/${CONTAINER_NAME}"
|