-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 788 Bytes
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
FROM ubuntu:14.04
MAINTAINER Dan Sosedoff "dan@doejo.com"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN echo "LC_ALL=\"en_US.UTF-8\"" >> /etc/default/locale
RUN apt-get update
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8
RUN apt-get install -y wget curl git-core software-properties-common
RUN apt-add-repository ppa:brightbox/ruby-ng && \
apt-get update && \
apt-get install -y ruby2.1 ruby2.1-dev
RUN echo "gem: --no-rdoc --no-ri" > /etc/gemrc
RUN gem update --system
RUN gem install bundler
RUN useradd -m worker
USER worker
RUN git clone https://github.com/codescout/codescout-worker.git /home/worker/app
WORKDIR /home/worker/app
RUN bundle install --path .bundle -j4 --deployment
CMD ["bundle", "exec", "foreman", "start"]