first commit

This commit is contained in:
duffyduck
2026-10-16 15:55:14 +02:00
commit 65e8b9440d
62 changed files with 4799 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM python:3.12-alpine
WORKDIR /app
RUN apk add --no-cache su-exec && adduser -D -u 1000 netclip
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY netclip_server.py entrypoint.sh ./
RUN chmod +x entrypoint.sh
ENV DATA_DIR=/data PORT=8080 PYTHONUNBUFFERED=1
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s CMD wget -qO- http://127.0.0.1:8080/healthz || exit 1
ENTRYPOINT ["./entrypoint.sh"]
CMD ["python", "netclip_server.py"]