File tree Expand file tree Collapse file tree 5 files changed +6
-10
lines changed
Expand file tree Collapse file tree 5 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,14 @@ RUN pip install --no-cache-dir requests beautifulsoup4 icalendar pytz
99WORKDIR /app
1010
1111# Copy code
12- COPY --chown=nobody:nogroup ./app /app
12+ COPY --chown=nobody:nogroup . /
1313
1414# Create output dir for serving
1515RUN touch /app/balfolk.ics
1616
1717# Setup cron
18- RUN apk add --no-cache bash curl busybox-suid && \
19- echo "#!/bin/sh\n crond -f -L /dev/stdout" > /start.sh && \
20- chmod +x /start.sh
18+ RUN apk add --no-cache busybox-suid && crontab /app/crontab.txt
2119
2220# Install cron job
2321RUN crontab /app/crontab.txt
2422
25- # Start cron and HTTP server
26- CMD sh -c "python3 /app/balfolk_ical.py && crond -f -L /dev/stdout & python3 -m http.server 8000 --directory /app"
27-
28-
29-
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 11target "docker-metadata-action" {}
22
33variable "APP" {
4- default = " bfics "
4+ default = " balfolk-ics "
55}
66
77variable "VERSION" {
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ python3 /app/balfolk_ical.py && crond -f -L /dev/stdout & python3 -m http.server 8000 --directory /app
You can’t perform that action at this time.
0 commit comments