feat: Project Scaffold and Docker Packaging

This commit is contained in:
OpenVelo Agent
2026-08-04 17:40:20 +00:00
parent a6f236918e
commit 6e3f9249a8
27 changed files with 1093 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
TZ=Europe/Berlin
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
git \
ca-certificates \
tzdata \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd --system bot \
&& useradd --system --gid bot --home /app --shell /usr/sbin/nologin bot
WORKDIR /app
RUN mkdir -p /app/data \
&& chown -R bot:bot /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r /app/requirements.txt
COPY --chown=bot:bot crontab/ /app/crontab/
COPY --chown=bot:bot entrypoint.sh /app/entrypoint.sh
COPY --chown=bot:bot src/ /app/src/
RUN chmod 0755 /app/entrypoint.sh \
&& chmod 0755 /app/crontab/install-cron.sh \
&& chmod 0644 /app/crontab/tenbackward.cron
ENV PYTHONPATH=/app/src
USER bot
ENTRYPOINT ["/app/entrypoint.sh"]