forked from chuhlomin/render-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
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 <mail@chuhlomin.com>"
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"]