mirror of
https://github.com/moul/sshportal.git
synced 2025-03-10 14:26:43 +08:00
13 lines
450 B
Docker
13 lines
450 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 alpine
|
|
COPY --from=builder /go/bin/sshportal /bin/sshportal
|
|
ENTRYPOINT ["/bin/sshportal"]
|
|
CMD ["server"]
|
|
EXPOSE 2222
|
|
HEALTHCHECK --interval=10s --timeout=10s CMD /bin/sshportal healthcheck
|