1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00
dockerfiles/hans/Dockerfile

23 lines
503 B
Docker
Raw Normal View History

2016-10-28 14:24:03 +00:00
#
# Dockerfile for hans
#
FROM alpine
2017-05-07 23:05:07 +00:00
MAINTAINER kev <noreply@easypi.pro>
2016-10-28 14:24:03 +00:00
RUN set -xe \
&& apk add --no-cache build-base curl libstdc++ linux-headers tar \
&& mkdir hans \
&& cd hans \
2016-11-23 15:19:44 +00:00
&& curl -sSL https://github.com/friedrich/hans/archive/v1.0.tar.gz | tar xz --strip 1 \
2016-10-28 14:24:03 +00:00
&& make \
&& mv hans /usr/bin/hans \
&& cd .. \
&& rm -rf hans \
&& apk del build-base curl linux-headers tar
ENV NETWORK 10.1.2.0
ENV PASSWORD password
CMD hans -f -s $NETWORK -p $PASSWORD