-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
24 lines (18 loc) · 997 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
FROM ubuntu
RUN apt-get update
RUN apt-get -y install apt-utils git-core
# Simple ruby package support
RUN apt-get -y install ruby1.9.1 ruby1.9.1-dev rubygems1.9.1 irb1.9.1 build-essential libopenssl-ruby1.9.1 libssl-dev zlib1g-dev curl wget
# ubuntu latest is on libssl1.0.0, Heroku Ruby depends on 0.9.8
RUN curl http://security.ubuntu.com/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu3.1_amd64.deb -o libssl0.9.8_0.9.8o-7ubuntu3.1_amd64.deb && dpkg -i libssl0.9.8_0.9.8o-7ubuntu3.1_amd64.deb
# Heroku uses Foreman and Procfiles to control processes
RUN gem install foreman --no-ri --no-rdoc
# Add buildpack application user
RUN groupadd -r buildpack_app -g 433 && \
useradd -u 431 -r -g buildpack_app -d /opt/openshift -s /sbin/nologin -c "buildpack app user" buildpack_app && \
mkdir -p /home/buildpack && chown buildpack_app:buildpack_app /home/buildpack
ADD ./buildpack /usr/buildpack/
ADD ./prepare /usr/bin/
ADD ./run /usr/bin/
WORKDIR /home/buildpack
EXPOSE 5000