forked from freitas-renato/mosh-static-multiarch
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (26 loc) · 654 Bytes
/
Dockerfile
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
ARG TARGET_ARCH=amd64
ARG HOST_ARCH=amd64
FROM multiarch/qemu-user-static as bootstrap
ARG arch
ARG host
RUN echo "Switching from $host to $arch" && uname -a
# Based on from https://github.com/javabrett/mosh/blob/docker/dockerfiles/Dockerfile.alpine
FROM multiarch/alpine:${TARGET_ARCH}-latest-stable as build
ARG TARGET_ARCH
RUN echo "Building for ${TARGET_ARCH}" && uname -a
RUN apk update && \
apk --no-cache add \
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