This commit is contained in:
qiaofeng1227 2023-10-19 18:31:27 +08:00
parent df0ec1af19
commit 092431e9d2

View File

@ -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