Skip to content

Commit

Permalink
Update Docker build to run go install locally
Browse files Browse the repository at this point in the history
  • Loading branch information
paololazzari committed Oct 27, 2023
1 parent be8a802 commit da148f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
.dockerignore
.gitignore
.gitignore
LICENSE.md
README.md
docs
.github
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM alpine:3.18.4 as build
COPY --from=golang:1.21-alpine3.18 /usr/local/go/ /usr/local/go/
RUN GOBIN=/usr/local/bin/ /usr/local/go/bin/go install github.com/paololazzari/play@latest
ADD . .
RUN GOBIN=/usr/local/bin/ /usr/local/go/bin/go install
RUN apk add --no-cache wget && \
wget -q https://github.com/stedolan/jq/releases/download/jq-1.7/jq-linux64 && \
mv jq-linux64 /usr/local/bin/jq && \
Expand Down

0 comments on commit da148f2

Please sign in to comment.