mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
0e8bd1427e
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
31 lines
679 B
Docker
31 lines
679 B
Docker
FROM alpine:latest
|
|
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
|
|
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
ENV GOPATH /go
|
|
|
|
ENV MICRO_VERSION v1.4.0
|
|
|
|
RUN buildDeps=' \
|
|
go \
|
|
git \
|
|
gcc \
|
|
g++ \
|
|
libc-dev \
|
|
libgcc \
|
|
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 \
|
|
&& mv /go/bin/micro /usr/bin/micro \
|
|
&& rm -rf /go/src/github.com/zyedidia/micro \
|
|
&& apk del $buildDeps \
|
|
&& rm -rf /go \
|
|
&& echo "Build complete."
|
|
|
|
ENTRYPOINT [ "micro" ]
|