This commit is contained in:
2024-11-24 14:53:42 +01:00
parent b1fd84a423
commit 3815ba1547
5 changed files with 203 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM python:slim
ARG TARGETPLATFORM
ARG BUILDPLATFORM
LABEL authors="tebarius"
LABEL version="0.1.0"
LABEL description="netdata-DocRudi"
WORKDIR /app
COPY ./app /app/
RUN apt-get update && \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$TARGETPLATFORM" = "linux/386" ]; then \
apt-get install -y --no-install-recommends zlib1g-dev libjpeg-dev gcc; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --trusted-host pypi.python.org -r requirements.txt
ENV SERVER_PORT=19998
EXPOSE $SERVER_PORT
CMD ["sh", "-c", "python netdata_DocRudi.py"]