mirror of
https://github.com/moul/sshportal.git
synced 2025-01-10 17:37:56 +08:00
12 lines
375 B
Docker
12 lines
375 B
Docker
# build
|
|
FROM golang:1.9 as builder
|
|
COPY . /go/src/github.com/moul/sshportal
|
|
WORKDIR /go/src/github.com/moul/sshportal
|
|
RUN make _docker_install
|
|
|
|
# minimal runtime
|
|
FROM scratch
|
|
COPY --from=builder /go/bin/sshportal /bin/sshportal
|
|
ENTRYPOINT ["/bin/sshportal"]
|
|
CMD ["server"]
|
|
EXPOSE 2222
|