add Dockerfile
This commit is contained in:
parent
46feb2ea3a
commit
02c61f6c4d
1 changed files with 9 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
FROM python:3.13-slim
|
||||||
|
WORKDIR /app
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
COPY collector.py .
|
||||||
|
RUN useradd --system --uid 10001 monitor
|
||||||
|
USER monitor
|
||||||
|
EXPOSE 9199
|
||||||
|
CMD ["python", "-u", "collector.py"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue