Skip to content

Commit dce8d79

Browse files
authored
Update Dockerfile
1 parent e684ae2 commit dce8d79

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ ENV GOPATH /stenographer
1111
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
1212
RUN 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
1515
ENV BINDIR=/opt/stenographer/bin
1616
RUN 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

2222
FROM ubuntu:22.04
2323
COPY --from=build /opt/stenographer/bin /usr/bin
2424
COPY --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/
2626
COPY entrypoint.sh /usr/bin/
2727

2828
RUN 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

Comments
 (0)