forked from samvera/hyku
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (49 loc) · 1.5 KB
/
Dockerfile
File metadata and controls
54 lines (49 loc) · 1.5 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM ruby:3.2.6
RUN apt-get update -qq && \
apt-get install -y \
build-essential \
ghostscript \
imagemagick \
libpq-dev \
libvips \
libvips-dev \
libvips-tools \
ffmpeg \
nodejs \
npm \
libreoffice \
libsasl2-dev \
nano \
lsof \
yarn \
unzip \
poppler-utils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# If you want to run a newer version of UniversalViewer, you may need to install a newer version of nodejs
# RUN curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource_setup.sh
# apt install nodejs
# If changes are made to fits version or location,
# amend `LD_LIBRARY_PATH` in docker-compose.yml accordingly.
RUN mkdir -p /opt/fits && \
cd /opt/fits && \
wget https://github.com/harvard-lts/fits/releases/download/1.5.1/fits-1.5.1.zip -O fits.zip && \
unzip fits.zip && \
rm fits.zip && \
chmod a+x /opt/fits/fits.sh
#ENV PATH="${PATH}:/opt/fits"
# Install universalviewer
RUN mkdir /node
RUN npm install universalviewer@3.0.36 --prefix /node
# The new home for our application is /home/app/webapp (used to be /data)
RUN mkdir -p /home/app/webapp
WORKDIR /home/app/webapp
ADD Gemfile /home/app/webapp/Gemfile
ADD Gemfile.lock /home/app/webapp/Gemfile.lock
ADD .irbrc /root/.irbrc
RUN gem install rails -v 6.1
RUN bundle install
RUN bundle exec rails db:migrate RAILS_ENV=development
ADD . /home/app/webapp
EXPOSE 3000
CMD /bin/bash