mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-03-27 22:46:37 +00:00
added distroless docker file
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