Files
linuxkit/base/mksh/Dockerfile
Justin Cormack f8e0a3d61c Move base images directory to top level
These are standalone, better to have them at the top.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-24 18:55:23 +00:00

22 lines
396 B
Docker

FROM alpine:3.5
RUN \
apk update && apk upgrade && \
apk add \
curl \
gcc \
groff \
make \
musl-dev \
&& true
COPY . /
ENV VERSION=mksh-R54
RUN curl -O -sSL https://github.com/MirBSD/mksh/archive/$VERSION.tar.gz
RUN zcat $VERSION.tar.gz | tar xvf -
ENV LDFLAGS=-static
RUN cd mksh-$VERSION && sh ./Build.sh && strip mksh && install -c -s -o root -g bin -m 555 mksh /bin/mksh