mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-01-31 09:30:36 +01:00
25 lines
461 B
Docker
25 lines
461 B
Docker
|
FROM alpine:latest
|
||
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||
|
|
||
|
RUN apk update && apk add \
|
||
|
ncurses \
|
||
|
&& rm -rf /var/cache/apk/*
|
||
|
|
||
|
RUN set -x \
|
||
|
&& apk add --no-cache --virtual .build-deps \
|
||
|
ca-certificates \
|
||
|
gcc \
|
||
|
git \
|
||
|
libc-dev \
|
||
|
make \
|
||
|
&& git clone --depth 1 https://github.com/abs0/wargames.git /tmp/wargames \
|
||
|
&& ( \
|
||
|
cd /tmp/wargames \
|
||
|
&& make \
|
||
|
&& make install \
|
||
|
) \
|
||
|
&& rm -rf /tmp/wargames \
|
||
|
&& apk del .build-deps
|
||
|
|
||
|
CMD [ "wargames" ]
|