mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-28 23:06:34 +00:00
Merge pull request #33 from m-baertschi/distroless-docker
distroless docker image
This commit is contained in:
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"]
|
||||||
Reference in New Issue
Block a user