mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-05 13:04:08 +00:00
C version of #1006 Note that I switched all the C builds to use -O2 and that meant that the compiler found some more warnings so I also fixed these up. The possibly undefined ones were harmless, the aliasing one is now more correct. As these are small programs, the caching from `docker build` makes no real difference, and worst case compile time is much better. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
16 lines
215 B
Docker
16 lines
215 B
Docker
FROM alpine:3.5
|
|
RUN \
|
|
apk update && apk upgrade && \
|
|
apk add \
|
|
curl \
|
|
gcc \
|
|
git \
|
|
libc-dev \
|
|
linux-headers \
|
|
util-linux-dev \
|
|
&& true
|
|
|
|
COPY compile.sh /usr/bin/
|
|
|
|
ENTRYPOINT ["/usr/bin/compile.sh"]
|