forked from kakkoyun/action-jsonnetfmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 910 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Container image that runs your code
FROM golang:1.26.1-alpine as builder
RUN go install github.com/google/go-jsonnet/cmd/jsonnetfmt@v0.22.0
FROM golang:1.26.1-alpine as runner
COPY --from=builder /go/bin/jsonnetfmt /bin/jsonnetfmt
LABEL repository="https://github.com/kakkoyun/action-jsonnetfmt"
LABEL homepage="https://github.com/kakkoyun/action-jsonnetfmt"
LABEL maintainer="Kemal Akkoyun <kakkoyun@gmail.com>"
LABEL "com.github.actions.name"="jsonnetfmt Action"
LABEL "com.github.actions.description"="Run jsonnetfmt to check if jsonnet files are formatted in current workspace"
LABEL "com.github.actions.icon"="feather"
LABEL "com.github.actions.color"="blue"
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]