27 lines
610 B
Docker
27 lines
610 B
Docker
FROM python:slim
|
|
|
|
ARG TARGETPLATFORM
|
|
ARG BUILDPLATFORM
|
|
|
|
LABEL authors="tebarius"
|
|
LABEL version="0.2.1"
|
|
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"]
|