All checks were successful
Build and Push / build (push) Successful in 6s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
29 lines
756 B
Docker
29 lines
756 B
Docker
FROM python:3.13-alpine
|
|
|
|
RUN apk add --no-cache curl bash tzdata \
|
|
&& cp /usr/share/zoneinfo/Europe/Prague /etc/localtime \
|
|
&& echo "Europe/Prague" > /etc/timezone
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV DATA_DIR=/app/data
|
|
|
|
WORKDIR /app
|
|
|
|
COPY scrape_and_map.py scrape_realingo.py scrape_bezrealitky.py \
|
|
scrape_idnes.py scrape_psn.py scrape_cityhome.py \
|
|
merge_and_map.py generate_status.py scraper_stats.py \
|
|
run_all.sh server.py ./
|
|
|
|
COPY build/crontab /etc/crontabs/root
|
|
COPY build/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh run_all.sh
|
|
|
|
RUN mkdir -p /app/data
|
|
|
|
EXPOSE 8080
|
|
|
|
HEALTHCHECK --interval=60s --timeout=5s --start-period=300s \
|
|
CMD wget -q -O /dev/null http://localhost:8080/ || exit 1
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|