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} /go/src/
WORKDIR /go/src/
RUN go build
RUN go build -o /usr/local/bin/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/ /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