mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Add addons-ready Dockerfile
This commit is contained in:
parent
62e3eff87e
commit
98c41052db
1 changed files with 4 additions and 0 deletions
|
@ -15,13 +15,17 @@ 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
|
||||
|
|
Loading…
Reference in a new issue