diff --git a/cmd/juno-admin/Dockerfile b/cmd/juno-admin/Dockerfile index 0eebe0f6f..507020d61 100644 --- a/cmd/juno-admin/Dockerfile +++ b/cmd/juno-admin/Dockerfile @@ -2,15 +2,17 @@ FROM alpine:latest WORKDIR /root/juno/ +COPY --from=golang:1.19-alpine /usr/local/go/ /usr/local/go/ ARG JUNO_TAR + RUN echo ${JUNO_TAR} COPY ${JUNO_TAR} . +RUN cd /root/juno && tar xvf ${JUNO_TAR} && \ RUN apk add unzip --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \ - wget https://dl.google.com/go/go1.20.1.linux-amd64.tar.gz && \ - tar -C /usr/local -xzf go1.20.1.linux-amd64.tar.gz && \ wget https://github.com/brendangregg/FlameGraph/archive/refs/heads/master.zip && \ mkdir -p /home/www/system/pprof/ && \ unzip master.zip -d /home/www/system/pprof/ && \ + rm master.zip && \ apk add graphviz --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \ cd /root/juno && tar xvf ${JUNO_TAR} && \ mv /root/juno/juno-admin /usr/local/bin/ && \