diff --git a/docker/deployment/Dockerfile b/docker/deployment/Dockerfile index 66e23e08..f280e637 100644 --- a/docker/deployment/Dockerfile +++ b/docker/deployment/Dockerfile @@ -4,6 +4,7 @@ FROM golang:latest AS builder WORKDIR / COPY init_portainer.go / +# CGO_ENABLED=0 can not depend on any dynamic library RUN CGO_ENABLED=0 go build -o init_portainer /init_portainer.go RUN chmod +x /init_portainer