2017-11-02 16:18:43 +08:00
|
|
|
# build
|
|
|
|
FROM golang:1.9 as builder
|
|
|
|
COPY . /go/src/github.com/moul/sshportal
|
|
|
|
WORKDIR /go/src/github.com/moul/sshportal
|
2017-11-14 08:13:51 +08:00
|
|
|
RUN make _docker_install
|
2017-11-02 16:18:43 +08:00
|
|
|
|
|
|
|
# minimal runtime
|
2018-01-01 17:41:21 +08:00
|
|
|
FROM alpine
|
2017-11-02 16:18:43 +08:00
|
|
|
COPY --from=builder /go/bin/sshportal /bin/sshportal
|
|
|
|
ENTRYPOINT ["/bin/sshportal"]
|
2017-12-31 23:31:25 +08:00
|
|
|
CMD ["server"]
|
2018-01-01 16:07:19 +08:00
|
|
|
EXPOSE 2222
|
2018-01-01 17:41:21 +08:00
|
|
|
HEALTHCHECK --interval=10s --timeout=10s CMD /bin/sshportal healthcheck
|