mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2025-08-21 15:50:49 +02:00
Merge pull request #33 from m-baertschi/distroless-docker
distroless docker image
This commit is contained in:
commit
53eaff3eaa
1 changed files with 12 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue