Files
2026-10-16 15:55:14 +02:00

13 lines
461 B
Docker

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"]