forked from Bioconductor/bioconductor.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 834 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
31
32
33
34
FROM ruby:2.6.5
## System dependencies
RUN apt-get update && apt-get install -y \
rsync \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
## Install gems
COPY Gemfile /opt
COPY Gemfile.lock /opt
## Set the working directory to /opt/bioconductor.org
WORKDIR /opt/bioconductor.org
## Copy the remaining files from bioconductor.org/ to /opt/bioconductor.org
COPY . .
## Install bundle and dependencies
RUN gem install bundler
RUN bundle install --jobs=4 && bundle clean --force
## Set up web server
EXPOSE 3000
## Create startup script
RUN echo '#! /bin/bash' > .startup.sh \
&& echo 'cd /opt/bioconductor.org' >> .startup.sh \
&& echo 'rake' >> .startup.sh \
&& echo 'cd output' >> .startup.sh \
&& echo 'adsf' >> .startup.sh \
&& chmod +x .startup.sh
CMD ["/opt/bioconductor.org/.startup.sh"]