Skip to content

Commit

Permalink
Update Dockerfile to include dagger CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
kminehart committed Jul 6, 2023
1 parent 81847df commit bcd4be6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grafana
grafana-*
dist
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FROM golang:1.20-alpine

ARG DAGGER_VERSION=v0.6.3

WORKDIR /src

ADD . .
RUN apk add --update git docker
RUN apk add --update git docker wget
RUN go build -o /src/grafana-build ./cmd

ENTRYPOINT ["/src/grafana-build"]
# Install dagger
RUN wget "https://github.com/dagger/dagger/releases/download/${DAGGER_VERSION}/dagger_${DAGGER_VERSION}_linux_amd64.tar.gz"
RUN tar -xvf ./dagger_${DAGGER_VERSION}_linux_amd64.tar.gz && mv dagger /bin

ENTRYPOINT ["dagger", "run", "/src/grafana-build"]

0 comments on commit bcd4be6

Please sign in to comment.