websoft9/docker/w9deploy/Dockerfile

12 lines
398 B
Text
Raw Normal View History

2023-09-11 00:40:56 +00:00
# step1: build entrypoint execute program init_portainer by golang
FROM golang:latest AS builder
WORKDIR /
2023-09-11 08:51:48 +00:00
COPY init_portainer.go /
RUN go build -o init_portainer /init_portainer.go
2023-09-13 00:38:24 +00:00
RUN chmod +x /init_portainer
2023-09-11 00:40:56 +00:00
# step2: copy build go program to portainer
FROM portainer/portainer-ce:2.19.0
2023-09-18 01:01:53 +00:00
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="2.19.0"
2023-09-13 00:38:24 +00:00
COPY --from=builder /init_portainer /