@@ -11,26 +11,26 @@ ENV GOPATH /stenographer
1111ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
1212RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
1313
14- RUN go get github.com/qxip/stenographer
14+ RUN git clone github.com/qxip/stenographer /stenographer/src
1515ENV BINDIR=/opt/stenographer/bin
1616RUN mkdir -p ${BINDIR} && \
17- cd /stenographer/src/github.com/qxip/stenographer && \
17+ cd /stenographer/src && \
1818 sed -i -e 's|/path/to|/var/lib/stenographer|' configs/steno.conf && \
1919 ( ./install.sh || true ) && \
2020 sed -i -e 's/curl /curl -k /' /opt/stenographer/bin/stenocurl
2121
2222FROM ubuntu:22.04
2323COPY --from=build /opt/stenographer/bin /usr/bin
2424COPY --from=build /etc/stenographer /etc/stenographer
25- COPY --from=build /stenographer/src/github.com/qxip/stenographer/ stenotype/compile_bpf.sh /usr/bin/
25+ COPY --from=build /stenographer/src/stenotype/compile_bpf.sh /usr/bin/
2626COPY entrypoint.sh /usr/bin/
2727
2828RUN adduser --system --no-create-home stenographer && \
2929 addgroup --system stenographer && \
3030 mkdir -p /var/lib/stenographer && \
3131 chown stenographer:stenographer /var/lib/stenographer && \
3232 apt update && \
33- apt install -y --no-install-recommends libleveldb1v5 libsnappy1v5 libaio1 \
33+ apt install -y --no-install-recommends libleveldb1d libsnappy1v5 libaio1 \
3434 jq tcpdump libcap2-bin curl tshark ca-certificates sudo && \
3535 setcap 'CAP_NET_RAW+ep CAP_NET_ADMIN+ep CAP_IPC_LOCK+ep' /usr/bin/stenotype && \
3636 rm -rf /var/lib/apt/lists/*
0 commit comments