-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b6326a
commit 2d437e3
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
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 | ||
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 && \ | ||
wget -q https://github.com/mikefarah/yq/releases/download/v4.35.2/yq_linux_amd64 && \ | ||
mv yq_linux_amd64 /usr/local/bin/yq | ||
|
||
FROM alpine:3.18.4 as main | ||
RUN apk add --no-cache bash=5.2.15-r5 && rm -rf /var/cache/apk/* | ||
COPY --from=build /usr/local/bin/jq /usr/local/bin/jq | ||
COPY --from=build /usr/local/bin/yq /usr/local/bin/yq | ||
COPY --from=build /usr/local/bin/play /usr/local/bin/play | ||
RUN apk add --no-cache bash=5.2.15-r5 && \ | ||
rm -rf /var/cache/apk/* && \ | ||
chmod +x /usr/local/bin/jq && \ | ||
chmod +x /usr/local/bin/yq | ||
|
||
COPY --from=build /usr/local/bin/play /usr/local/bin | ||
|
||
ENTRYPOINT ["/usr/local/bin/play"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters