sshportal/Dockerfile

15 lines
435 B
Text
Raw Normal View History

2017-11-02 16:18:43 +08:00
# build
2019-06-13 08:27:25 +08:00
FROM golang:1.12.6 as builder
2019-01-04 06:54:26 +08:00
ENV GO111MODULE=on
COPY . /go/src/moul.io/sshportal
WORKDIR /go/src/moul.io/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"]
CMD ["server"]
EXPOSE 2222
HEALTHCHECK CMD /bin/sshportal healthcheck --wait