portainer

This commit is contained in:
qiaofeng1227 2023-10-19 18:16:59 +08:00
parent 863859004a
commit df0ec1af19

View File

@ -4,11 +4,11 @@
FROM golang:latest AS builder
WORKDIR /
COPY init_portainer.go /
RUN go build -o init_portainer /init_portainer.go
RUN CGO_ENABLED=0 go build -o init_portainer /init_portainer.go
RUN chmod +x /init_portainer
COPY endpoint.go /
RUN go build -o endpoint /endpoint.go
RUN CGO_ENABLED=0 go build -o endpoint /endpoint.go
RUN chmod +x /endpoint
# step2: Copy build go program to portainer