blob: 2462c442d836b3d672d2bcf5355d06b57b1d128e [file] [log] [blame]
elinuxhenrik856d55d2021-08-24 17:01:24 +02001##
2## Build
3##
4FROM golang:1.17.1-bullseye AS build
5
6WORKDIR /app
7
8COPY go.mod ./
9COPY go.sum ./
10RUN go mod download
11
12COPY . ./
13
14RUN go build -o /docker-oruclosedloop
15
16##
17## Deploy
18##
19FROM gcr.io/distroless/base-debian10
20
21WORKDIR /
22
23## Copy from "build" stage
24COPY --from=build /docker-oruclosedloop .
25
26COPY --from=build /app/o-ru-to-o-du-map.csv .
27
28USER nonroot:nonroot
29
30ENTRYPOINT ["/docker-oruclosedloop"]