first commit
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user