forked from dtinth/mosh-static
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
33 lines (27 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Based on from https://github.com/javabrett/mosh/blob/docker/dockerfiles/Dockerfile.alpine
FROM alpine
ARG MOSH_VERSION=1.3.2
RUN apk update && \
apk --no-cache add \
git \
autoconf \
automake \
build-base \
ncurses-dev \
ncurses-static \
openssh-client \
openssh-server \
openssl-dev \
openssl-libs-static \
perl-doc \
protobuf-dev \
zlib-static \
zlib-dev \
libutempter-dev
# Build as static file
RUN git clone --depth=1 --branch mosh-${MOSH_VERSION} https://github.com/mobile-shell/mosh.git && \
cd mosh && \
./autogen.sh && LDFLAGS=-static ./configure && make
FROM scratch
COPY --from=0 /mosh/src/frontend/mosh-server /
COPY --from=0 /mosh/src/frontend/mosh-client /