-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 941 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Pull base image.
FROM alpine:latest
MAINTAINER Dominik Hahn <dominik@monostream.com>
# Define working directory.
WORKDIR /workspace
# Set GOPATH variable
ENV GOPATH=/usr/local/bin
ENV CF_DIAL_TIMEOUT=60
# Install openssl and build dependencies
RUN apk --update add --quiet --no-cache openssl go zip && \
apk --update add --quiet --no-cache --virtual build-dependencies git
# Install cf cli
RUN wget -O - "https://cli.run.pivotal.io/stable?release=linux64-binary&source=github" | tar -C /usr/local/bin -zxf -
# Install Diego-Enabler, Antifreeze and autopilot
RUN cf install-plugin Diego-Enabler -f -r CF-Community && \
go get github.com/contraband/autopilot && \
cf install-plugin $GOPATH/bin/autopilot -f && \
go get github.com/odlp/antifreeze && \
cf install-plugin $GOPATH/bin/antifreeze -f
# Removing build dependencies
RUN apk del build-dependencies && \
rm -rf /var/cache/apk/*
ENTRYPOINT ["/bin/ash"]