mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-13 15:42:46 +02:00
smaller
Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
parent
be2f2a03b5
commit
23d0d33999
@ -1,15 +1,28 @@
|
|||||||
FROM golang:1.7.0-alpine
|
FROM alpine:edge
|
||||||
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
RUN buildDeps=' \
|
||||||
|
go \
|
||||||
git \
|
git \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
libc-dev \
|
||||||
|
libgcc \
|
||||||
make \
|
make \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
' \
|
||||||
|
set -x \
|
||||||
|
&& apk --no-cache add $buildDeps \
|
||||||
&& git clone --depth 1 -b master https://github.com/zyedidia/micro /usr/src/micro \
|
&& git clone --depth 1 -b master https://github.com/zyedidia/micro /usr/src/micro \
|
||||||
&& cd /usr/src/micro \
|
&& cd /usr/src/micro \
|
||||||
|
&& mkdir -p /go/bin \
|
||||||
&& make install \
|
&& make install \
|
||||||
&& apk del \
|
&& mv /go/bin/micro /usr/bin/micro \
|
||||||
git \
|
&& rm -rf /usr/src/micro \
|
||||||
make
|
&& apk del $buildDeps \
|
||||||
|
&& rm -rf /go \
|
||||||
|
&& echo "Build complete."
|
||||||
|
|
||||||
ENTRYPOINT [ "/go/bin/micro" ]
|
ENTRYPOINT [ "micro" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user