added distroless docker file
This commit is contained in:
parent
bd10329828
commit
75b20383d9
12
dev/docker-distroless/Dockerfile
Normal file
12
dev/docker-distroless/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM golang:1
|
||||
WORKDIR /src
|
||||
ENV CGO_ENABLED 0
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go build github.com/bolkedebruin/rdpgw/cmd/rdpgw
|
||||
|
||||
FROM gcr.io/distroless/static-debian11:nonroot
|
||||
WORKDIR /config
|
||||
COPY --from=0 /src/rdpgw /rdpgw
|
||||
CMD ["/rdpgw"]
|
||||
Loading…
Reference in New Issue
Block a user