forked from cloudfoundry/cloud_controller_ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
55 lines (48 loc) · 1.27 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM ubuntu:bionic
WORKDIR /cloud_controller_ng
ENV DEBIAN_FRONTEND=noninteractive
ENV BUNDLE_GEMFILE /cloud_controller_ng/Gemfile
ENV CLOUD_CONTROLLER_NG_CONFIG /config/cloud_controller_ng.yml
ENV C_INCLUDE_PATH /libpq/include
ENV DYNO #{spec.job.name}-#{spec.index}
ENV LANG en_US.UTF-8
ENV LIBRARY_PATH /libpq/lib
ENV RAILS_ENV production
RUN apt-get update && \
apt-get install --no-install-recommends -y \
ca-certificates \
git \
bash \
build-essential \
curl \
libxml2-dev \
libxslt-dev \
libmariadb-dev \
libssl-dev \
tzdata \
libpq-dev \
tar \
wget \
sudo \
jq \
less \
dnsutils \
zip \
unzip \
libreadline-dev && \
rm -rf /var/lib/apt/lists/*
RUN wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.5.tar.gz -O /tmp/ruby.tar.gz && \
cd /tmp/ && \
tar zxvf /tmp/ruby.tar.gz && \
ls -alrt /tmp && \
cd /tmp/ruby-2.5.5 && \
./configure && \
make -j $(nproc) && \
sudo make install
COPY Gemfile .
COPY Gemfile.lock .
RUN gem install bundler -v 1.17.3 && \
bundle config build.nokogiri --use-system-libraries && \
bundle install --without test development
COPY . .
ENTRYPOINT ["/cloud_controller_ng/bin/cloud_controller", "-c", "/config/cloud_controller_ng.yml"]