forked from chuhlomin/render-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (18 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM --platform=linux/arm64 public.ecr.aws/docker/library/golang:1.17 as build-env
WORKDIR /go/src/app
ADD . /go/src/app
RUN go test -mod=vendor -cover ./...
RUN go build -mod=vendor -o /go/bin/app
FROM --platform=linux/arm64 gcr.io/distroless/static
# latest-amd64 -> 966f4bd97f611354c4ad829f1ed298df9386c2ec
# https://github.com/GoogleContainerTools/distroless/tree/master/base
LABEL name="render-template"
LABEL repository="http://github.com/chuhlomin/render-template"
LABEL homepage="http://github.com/chuhlomin/render-template"
LABEL maintainer="Konstantin Chukhlomin <[email protected]>"
LABEL com.github.actions.name="Render template"
LABEL com.github.actions.description="Renders file based on template and passed variables"
LABEL com.github.actions.icon="file-text"
LABEL com.github.actions.color="purple"
COPY --from=build-env /go/bin/app /app
CMD ["/app"]