dockerfiles/micro/Dockerfile

29 lines
632 B
Docker
Raw Normal View History

FROM alpine:latest as builder
2017-04-04 09:19:34 +02:00
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
2016-09-09 19:31:38 +02:00
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
ENV MICRO_VERSION nightly
RUN buildDeps=' \
go \
2016-09-09 19:31:38 +02:00
git \
gcc \
g++ \
libc-dev \
libgcc \
2016-09-09 19:31:38 +02:00
make \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& git clone --depth 1 --branch "$MICRO_VERSION" https://github.com/zyedidia/micro /go/src/github.com/zyedidia/micro \
&& cd /go/src/github.com/zyedidia/micro \
&& mkdir -p /go/bin \
&& make install \
&& echo "Build complete."
2016-09-09 19:31:38 +02:00
FROM alpine:latest
COPY --from=builder /go/bin/micro /usr/bin/micro
ENTRYPOINT [ "micro" ]