-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
30 lines (27 loc) · 909 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:xenial
MAINTAINER Like Ma <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends sudo sshpass ruby \
glusterfs-client nodejs-legacy netbase \
ruby-dev npm git make g++ libsqlite3-dev; \
npm install -g bower; \
echo "gem: --no-rdoc --no-ri" > ~/.gemrc; \
gem install bundler; \
git clone https://github.com/oss2016summer/gluster-web-interface.git \
/gluster-web; \
cd /gluster-web; \
bower install --allow-root; \
echo "gem 'tzinfo-data'" >> Gemfile; \
bundle install; \
bin/rake db:migrate; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* Gemfile.* ~/.gem ~/.bundle \
/usr/lib/ruby/gems/2.3.0/cache; \
apt-get remove --purge -y ruby-dev npm git make g++ libsqlite3-dev; \
apt-get autoremove --purge -y
WORKDIR /gluster-web
COPY entrypoint /
EXPOSE 3000
ENTRYPOINT ["/entrypoint"]