Replace deprecated go get ...
command
This commit is contained in:
parent
43fa118a02
commit
23f19033f1
15
Dockerfile
15
Dockerfile
|
@ -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" ]
|
||||
|
|
|
@ -11,7 +11,7 @@ services:
|
|||
- NET_ADMIN
|
||||
- SYS_ADMIN
|
||||
security_opt:
|
||||
- apparmor:unconfined
|
||||
- apparmor:unconfined
|
||||
devices:
|
||||
- /dev/net/tun
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue