mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 06:21:32 +01:00
@@ -1,9 +1,11 @@
|
||||
FROM alpine:edge
|
||||
FROM alpine:latest
|
||||
MAINTAINER Christian Koep <christian.koep@fom-net.de>
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
ENV GOPATH /go
|
||||
|
||||
ENV MICRO_VERSION v1.1.0
|
||||
|
||||
RUN buildDeps=' \
|
||||
go \
|
||||
git \
|
||||
@@ -15,12 +17,12 @@ RUN buildDeps=' \
|
||||
' \
|
||||
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 \
|
||||
&& git clone --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 \
|
||||
&& mv /go/bin/micro /usr/bin/micro \
|
||||
&& rm -rf /usr/src/micro \
|
||||
&& rm -rf /go/src/github.com/zyedidia/micro \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
||||
Reference in New Issue
Block a user