Replace deprecated go get ... command

This commit is contained in:
Scott Wallace 2022-04-05 09:57:01 +01:00
parent 43fa118a02
commit 23f19033f1
Signed by: scott
GPG key ID: AA742FDC5AFE2A72
2 changed files with 10 additions and 7 deletions

View file

@ -13,7 +13,7 @@ RUN git clone https://github.com/slackhq/nebula.git
WORKDIR /src/nebula
RUN make bin
RUN go get github.com/chrislusf/seaweedfs/weed
RUN go install github.com/chrislusf/seaweedfs/weed@latest
# Start from a clean image
FROM alpine:3.15
@ -25,15 +25,18 @@ RUN mkdir /app
WORKDIR /app
# Copy over the compiled binaries
COPY --from=intermediate /src/nebula/nebula ./
COPY --from=intermediate /src/nebula/nebula-cert ./
COPY --from=intermediate /root/go/bin/weed ./
COPY --from=intermediate /src/nebula/nebula .
COPY --from=intermediate /src/nebula/nebula-cert .
COPY --from=intermediate /root/go/bin/weed .
COPY nebula-start.sh ./
COPY seaweedfs-start.sh ./
COPY nebula-start.sh .
COPY seaweedfs-start.sh .
COPY docker-entrypoint.sh ./entrypoint.sh
EXPOSE 4242/udp
EXPOSE 9333/tcp
EXPOSE 8080/tcp
EXPOSE 18080/tcp
EXPOSE 8888/tcp
EXPOSE 18888/tcp
ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ]