mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
cleanup
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
1f61f46611
commit
e1b48daaae
|
@ -1,28 +1,22 @@
|
||||||
FROM alpine:latest as builder
|
FROM golang:alpine as builder
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
ca-certificates \
|
||||||
|
git
|
||||||
|
|
||||||
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
ENV GOPATH /go
|
||||||
|
|
||||||
|
RUN go get github.com/coreos/clair/cmd/clair
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
bzr \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
git \
|
git \
|
||||||
rpm \
|
rpm \
|
||||||
xz
|
xz
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
|
||||||
ENV GOPATH /go
|
|
||||||
|
|
||||||
RUN buildDeps=' \
|
|
||||||
go \
|
|
||||||
gcc \
|
|
||||||
g++ \
|
|
||||||
libc-dev \
|
|
||||||
libgcc \
|
|
||||||
' \
|
|
||||||
set -x \
|
|
||||||
&& apk --no-cache add $buildDeps \
|
|
||||||
&& go get github.com/coreos/clair/cmd/clair \
|
|
||||||
&& echo "Build complete."
|
|
||||||
|
|
||||||
FROM alpine:latest
|
|
||||||
COPY --from=builder /go/bin/clair /usr/bin/clair
|
COPY --from=builder /go/bin/clair /usr/bin/clair
|
||||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
|
||||||
ENTRYPOINT [ "clair" ]
|
ENTRYPOINT [ "clair" ]
|
||||||
|
|
|
@ -1,29 +1,25 @@
|
||||||
FROM alpine:latest as builder
|
FROM golang:alpine as builder
|
||||||
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
LABEL maintainer "Christian Koep <christiankoep@gmail.com>"
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
ca-certificates \
|
||||||
|
git \
|
||||||
|
make
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
ENV MICRO_VERSION nightly
|
ENV MICRO_VERSION nightly
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN git clone --depth 1 --branch "$MICRO_VERSION" https://github.com/zyedidia/micro /go/src/github.com/zyedidia/micro
|
||||||
go \
|
|
||||||
git \
|
WORKDIR /go/src/github.com/zyedidia/micro
|
||||||
gcc \
|
|
||||||
g++ \
|
RUN make install
|
||||||
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 \
|
|
||||||
&& echo "Build complete."
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
COPY --from=builder /go/bin/micro /usr/bin/micro
|
COPY --from=builder /go/bin/micro /usr/bin/micro
|
||||||
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
|
||||||
|
|
||||||
ENTRYPOINT [ "micro" ]
|
ENTRYPOINT [ "micro" ]
|
||||||
|
|
|
@ -5,26 +5,16 @@
|
||||||
# --name mop \
|
# --name mop \
|
||||||
# r.j3ss.co/mop
|
# r.j3ss.co/mop
|
||||||
#
|
#
|
||||||
FROM alpine:latest as builder
|
FROM golang:alpine as builder
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
ca-certificates
|
ca-certificates \
|
||||||
|
git
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
RUN buildDeps=' \
|
RUN go get github.com/mop-tracker/mop/cmd/mop
|
||||||
go \
|
|
||||||
git \
|
|
||||||
gcc \
|
|
||||||
g++ \
|
|
||||||
libc-dev \
|
|
||||||
libgcc \
|
|
||||||
' \
|
|
||||||
set -x \
|
|
||||||
&& apk --no-cache add $buildDeps \
|
|
||||||
&& go get github.com/mop-tracker/mop/cmd/mop \
|
|
||||||
&& echo "Build complete."
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
COPY --from=builder /go/bin/mop /usr/bin/mop
|
COPY --from=builder /go/bin/mop /usr/bin/mop
|
||||||
|
|
|
@ -1,28 +1,20 @@
|
||||||
FROM alpine:latest as builder
|
FROM golang:alpine as builder
|
||||||
LABEL maintainer "Jess Frazelle <jess@linux.com>"
|
LABEL maintainer "Jess Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
ca-certificates \
|
||||||
|
git
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
|
||||||
ca-certificates
|
|
||||||
|
|
||||||
ENV TRANSFER_SH_VERSION master
|
ENV TRANSFER_SH_VERSION master
|
||||||
|
|
||||||
RUN set -x \
|
RUN git clone --depth 1 --branch ${TRANSFER_SH_VERSION} https://github.com/dutchcoders/transfer.sh /go/src/github.com/dutchcoders/transfer.sh
|
||||||
&& apk --no-cache add \
|
|
||||||
bash \
|
WORKDIR /go/src/github.com/dutchcoders/transfer.sh
|
||||||
go \
|
|
||||||
git \
|
RUN go build -o /usr/bin/transfer.sh
|
||||||
gcc \
|
|
||||||
g++ \
|
|
||||||
libc-dev \
|
|
||||||
libgcc \
|
|
||||||
make \
|
|
||||||
&& git clone --depth 1 --branch ${TRANSFER_SH_VERSION} https://github.com/dutchcoders/transfer.sh /go/src/github.com/dutchcoders/transfer.sh \
|
|
||||||
&& cd /go/src/github.com/dutchcoders/transfer.sh \
|
|
||||||
&& go build -o /usr/bin/transfer.sh \
|
|
||||||
&& echo "Build complete."
|
|
||||||
|
|
||||||
# Create a clean image without build dependencies
|
# Create a clean image without build dependencies
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user