dockerfiles/micro/Dockerfile
Jess Frazelle 23d0d33999
smaller
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-09-12 11:20:49 -07:00

29 lines
572 B
Docker

FROM alpine:edge
MAINTAINER Christian Koep <christian.koep@fom-net.de>
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN buildDeps=' \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
make \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& git clone --depth 1 -b master https://github.com/zyedidia/micro /usr/src/micro \
&& cd /usr/src/micro \
&& mkdir -p /go/bin \
&& make install \
&& mv /go/bin/micro /usr/bin/micro \
&& rm -rf /usr/src/micro \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "micro" ]