Update Dockerfile
Make hub eligible - Remove any proprietary binaries (Oookla) & install those at container initialization instead.
This commit is contained in:
parent
cb3eb1be7f
commit
61fb17ea67
1 changed files with 14 additions and 18 deletions
32
Dockerfile
32
Dockerfile
|
@ -1,28 +1,24 @@
|
||||||
FROM python:3.8-slim-buster
|
FROM python:3.8-slim-buster
|
||||||
|
LABEL maintainer="Team QLUSTOR <team@qlustor.com>" \
|
||||||
LABEL maintainer="Luc VOISE" \
|
|
||||||
description="Original by Aiden Gilmartin. Speedtest to InfluxDB data bridge"
|
description="Original by Aiden Gilmartin. Speedtest to InfluxDB data bridge"
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -q -y install --no-install-recommends apt-utils gnupg1 apt-transport-https dirmngr
|
|
||||||
|
|
||||||
# Install speedtest-cli
|
|
||||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 379CE192D401AB61
|
|
||||||
RUN echo "deb https://ookla.bintray.com/debian buster main" | tee /etc/apt/sources.list.d/speedtest.list
|
|
||||||
RUN apt-get update && apt-get -q -y install speedtest
|
|
||||||
|
|
||||||
|
RUN true &&\
|
||||||
|
\
|
||||||
|
# Install dependencies
|
||||||
|
apt-get update && \
|
||||||
|
apt-get -q -y install --no-install-recommends apt-utils gnupg1 apt-transport-https dirmngr && \
|
||||||
|
\
|
||||||
# Install Python packages
|
# Install Python packages
|
||||||
COPY requirements.txt /
|
pip3 install influxdb && \
|
||||||
RUN pip install -r /requirements.txt
|
\
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
RUN apt-get -q -y autoremove
|
apt-get -q -y autoremove && apt-get -q -y clean && \
|
||||||
RUN apt-get -q -y clean
|
rm -rf /var/lib/apt/lists/*
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Final setup & execution
|
# Final setup & execution
|
||||||
COPY . /app
|
ADD . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["python3", "-u", "main.py"]
|
ENTRYPOINT ["/bin/sh", "/app/entrypoint.sh"]
|
||||||
|
CMD ["main.py"]
|
||||||
|
|
Loading…
Reference in a new issue