diff --git a/Dockerfile b/Dockerfile index 8976751..709b557 100644 --- a/Dockerfile +++ b/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" ] diff --git a/docker-compose-node.yaml b/docker-compose-node.yaml index 198b377..2c51d43 100644 --- a/docker-compose-node.yaml +++ b/docker-compose-node.yaml @@ -11,7 +11,7 @@ services: - NET_ADMIN - SYS_ADMIN security_opt: - - apparmor:unconfined + - apparmor:unconfined devices: - /dev/net/tun environment: