Add reproducible Docker and WireGuard host bootstrap
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FROM python:3.13.7-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends gosu && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
useradd --system --uid 10002 --home /nonexistent --shell /usr/sbin/nologin router
|
||||
WORKDIR /app
|
||||
COPY router/ai_profile_router.py router/router_support.py /app/
|
||||
COPY platform/docker/router/entrypoint.sh /usr/local/bin/router-entrypoint
|
||||
RUN chmod 0755 /usr/local/bin/router-entrypoint
|
||||
ENTRYPOINT ["router-entrypoint"]
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
chown 10002:10002 /var/lib/mike-ai-profile-router /data/images
|
||||
exec gosu 10002:10002 python /app/ai_profile_router.py
|
||||
Reference in New Issue
Block a user