Commit 130d452d authored by Matthew Gall's avatar Matthew Gall

Update Dockerfile

parent 5e31a5c5
Pipeline #30612 failed with stage
in 3 minutes and 42 seconds
......@@ -16,7 +16,7 @@ RUN apk --update --no-cache add \
RUN git clone --branch v${FLARECTL_VERSION} https://github.com/cloudflare/cloudflare-go /go/src/github.com/cloudflare/cloudflare-go
WORKDIR /go/src/github.com/cloudflare/cloudflare-go
RUN go build github.com/cloudflare/cloudflare-go/cmd/flarectl
RUN go build -o /usr/local/bin/flarectl github.com/cloudflare/cloudflare-go/cmd/flarectl
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:latest
......@@ -37,8 +37,8 @@ RUN addgroup -g 1000 flarectl \
&& adduser -u 1000 -G flarectl -s /sbin/nologin -D flarectl \
&& rm -rf /tmp/* /var/cache/apk/*
COPY --from=builder /go/src/github.com/cloudflare/cloudflare-go/cmd/flarectl /usr/local/bin/flarectl
RUN ls -lah /usr/local/bin/flarectl
COPY --from=builder /usr/local/bin/flarectl /usr/local/bin/flarectl
RUN chmod +x /usr/local/bin/flarectl && flarectl --version
USER flarectl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment