diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..97ff258 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM debian:buster-slim as BuildContainer +RUN apt update && apt install wget -y +RUN mkdir /usr/src/ooklaserver +RUN wget https://install.speedtest.net/ooklaserver/ooklaserver.sh && chmod a+x ooklaserver.sh +RUN ./ooklaserver.sh install -f -i /usr/src/ooklaserver + +FROM debian:buster-slim +EXPOSE 8080 +EXPOSE 5060 +RUN useradd -M -r -s /sbin/nologin -u 4711 ookla +COPY --chown=ookla --from=BuildContainer /usr/src/ooklaserver /srv/ooklaserver +USER ookla:ookla +WORKDIR /srv/ooklaserver +CMD ["/srv/ooklaserver/OoklaServer"]