mirror of
https://github.com/moul/sshportal.git
synced 2024-11-10 17:26:41 +08:00
d5bf550e96
Bumps golang from 1.16.2 to 1.16.3. Signed-off-by: dependabot[bot] <support@github.com>
16 lines
477 B
Docker
16 lines
477 B
Docker
# build
|
|
FROM golang:1.16.3 as builder
|
|
ENV GO111MODULE=on
|
|
WORKDIR /go/src/moul.io/sshportal
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . ./
|
|
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
|