You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
leakybot/Dockerfile

29 lines
593 B

FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.17 AS builder
ARG TARGETOS
ARG TARGETARCH
ENV GOOS=$TARGETOS
ENV GOARCH=$TARGETARCH
WORKDIR /build
COPY go.mod go.sum /build/
RUN go mod download
RUN go mod verify
COPY . /build/
RUN make
FROM --platform=$TARGETPLATFORM docker.io/library/busybox
RUN mkdir -p /data /etc/leakybot/
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /build/leakybot /bin/leakybot
USER nobody
VOLUME /data
ENTRYPOINT ["/bin/leakybot"]
CMD ["--config-file", "/etc/leakybot/config.yaml"]