mirror of
https://github.com/moul/sshportal.git
synced 2024-11-10 17:26:41 +08:00
10 lines
398 B
Docker
10 lines
398 B
Docker
# build
|
|
FROM golang:1.9 as builder
|
|
COPY . /go/src/github.com/moul/sshportal
|
|
WORKDIR /go/src/github.com/moul/sshportal
|
|
RUN CGO_ENABLED=1 go build -tags netgo -ldflags '-extldflags "-static"' -v -o /go/bin/sshportal
|
|
|
|
# minimal runtime
|
|
FROM scratch
|
|
COPY --from=builder /go/bin/sshportal /bin/sshportal
|
|
ENTRYPOINT ["/bin/sshportal"]
|