-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 937 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
FROM ubuntu:13.10
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
# install fleetctl
RUN apt-get install -y wget ca-certificates
RUN cd /root && wget -q https://github.com/coreos/fleet/releases/download/v0.1.4/fleet-v0.1.4-linux-amd64.tar.gz
RUN cd /root && tar -xzf fleet-v0.1.4-linux-amd64.tar.gz
RUN mv /root/fleet-v0.1.4-linux-amd64/fleetctl /usr/local/bin
# install bundler
RUN apt-get install -y git-core ruby ruby-dev build-essential
RUN gem install bundler
# install gem bundle
RUN mkdir -p /root/aedile/lib/aedile
# Add needed files for bundle install only
# this improves use of the docker build cache to speed up build times
ADD ./Gemfile /root/aedile/Gemfile
ADD ./aedile.gemspec /root/aedile/aedile.gemspec
ADD ./lib/aedile/version.rb /root/aedile/lib/aedile/version.rb
RUN cd /root/aedile && bundle --quiet
ADD ./ /root/aedile
CMD ["status"]
WORKDIR /root/aedile
ENTRYPOINT ["bundle", "exec", "bin/aedilectl"]