sshportal/Dockerfile
2019-05-21 20:28:40 +00:00

14 lines
435 B
Docker

# build
FROM golang:1.12.5 as builder
ENV GO111MODULE=on
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