mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
37 lines
769 B
Docker
37 lines
769 B
Docker
FROM ruby:2.3.3
|
|
MAINTAINER BioSistemika <info@biosistemika.com>
|
|
|
|
# additional dependecies
|
|
RUN apt-get update -qq && \
|
|
apt-get install -y \
|
|
nodejs \
|
|
postgresql-client \
|
|
default-jre-headless \
|
|
unison \
|
|
sudo graphviz --no-install-recommends \
|
|
sudo libfile-mimeinfo-perl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# heroku tools
|
|
RUN wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
|
|
|
|
# install gems
|
|
COPY Gemfile* /tmp/
|
|
COPY addons /tmp/addons
|
|
WORKDIR /tmp
|
|
RUN bundle install
|
|
RUN rm -rf addons
|
|
|
|
# create app directory
|
|
ENV APP_HOME /usr/src/app
|
|
RUN mkdir $APP_HOME
|
|
WORKDIR $APP_HOME
|
|
RUN mkdir addons
|
|
RUN ln -s $(readlink -f addons) /tmp
|
|
|
|
# container user
|
|
RUN groupadd scinote
|
|
RUN useradd -ms /bin/bash -g scinote scinote
|
|
USER scinote
|
|
|
|
CMD rails s -b 0.0.0.0
|