initial
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user