2017-03-07 03:22:45 +00:00
|
|
|
FROM ubuntu:xenial
|
|
|
|
MAINTAINER Like Ma <likemartinma@gmail.com>
|
|
|
|
|
2019-08-02 18:32:37 +00:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2017-03-07 03:22:45 +00:00
|
|
|
|
2019-08-02 18:32:37 +00:00
|
|
|
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; \
|
2019-08-02 18:50:39 +00:00
|
|
|
echo "gem 'tzinfo-data'" >> Gemfile; \
|
2019-08-02 18:32:37 +00:00
|
|
|
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; \
|
2017-03-07 03:22:45 +00:00
|
|
|
apt-get autoremove --purge -y
|
|
|
|
|
2019-08-02 18:32:37 +00:00
|
|
|
WORKDIR /gluster-web
|
2017-03-07 03:22:45 +00:00
|
|
|
COPY entrypoint /
|
|
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|