mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
7ac4881609
This enables us to remove the following patterns that required a `rm -rf /var/cache/apk`: - `apk update` - `apk add --update` - `apk add --update-cache` Supported since alpine 3.3.
24 lines
428 B
Docker
24 lines
428 B
Docker
FROM alpine:latest
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apk --no-cache add \
|
|
ncurses
|
|
|
|
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" ]
|