-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 1.24 KB
/
Copy pathDockerfile
File metadata and controls
40 lines (32 loc) · 1.24 KB
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
FROM ubuntu:16.04
MAINTAINER Dmitry Mozzherin
ENV LAST_FULL_REBUILD 2016-10-24
RUN apt-get update && \
apt-get install -y software-properties-common curl && \
apt-add-repository ppa:brightbox/ruby-ng && \
apt-get install apt-transport-https -y && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get update && \
apt-get install -y ruby2.4 ruby2.4-dev build-essential git vim \
qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base locales \
gstreamer1.0-tools gstreamer1.0-x \
libpq-dev postgresql-client dnsutils libmagic-dev \
nodejs yarn && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN echo 'gem: --no-rdoc --no-ri >> "$HOME/.gemrc"'
RUN gem install --no-rdoc --no-ri bundler && \
mkdir /app && mkdir /var/run/sshd
WORKDIR /app
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
RUN bundle install
COPY . /app
CMD ["/app/exe/docker_startup.sh"]