database syncer
Build and Push Docker Images / build-and-push (push) Successful in 1m19s

This commit is contained in:
Bram committed 2026-10-01 16:42:30 +02:00
1 parent 35dc35815b
commit e60cbc3da3
8 files changed
+291

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
FROM python:3.12-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
postgresql-client \
ca-certificates \
tzdata \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN python -m pip install --no-cache-dir -r requirements.txt
COPY sync.sh /usr/local/bin/sync.sh
COPY entrypoint.py /usr/local/bin/entrypoint.py
RUN chmod +x /usr/local/bin/sync.sh /usr/local/bin/entrypoint.py
ENV TZ=Europe/Brussels
ENV SOURCE_DB_URL=""
ENV DEST_DB_URL=""
ENV CRON=""
ENV ON_STARTUP=true
ENTRYPOINT ["/usr/local/bin/entrypoint.py"]