mirror of
https://github.com/moul/sshportal.git
synced 2025-01-11 09:59:39 +08:00
13 lines
413 B
Docker
13 lines
413 B
Docker
# build
|
|
FROM golang:1.11 as builder
|
|
COPY . /go/src/moul.io/sshportal
|
|
WORKDIR /go/src/moul.io/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 CMD /bin/sshportal healthcheck --wait
|