forked from wilkinsonlab/FAIR-Core-Tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (23 loc) · 959 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
FROM ruby:3.1.0
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:UTF-8" LC_ALL="C.UTF-8"
RUN apt-get update -q
RUN apt-get update -q && apt-get install build-essential -y
#RUN apt-get dist-upgrade -y -q
#RUN apt-get update -q
RUN apt-get install -y --no-install-recommends lighttpd && \
apt-get install -y --no-install-recommends libxml++2.6-dev libraptor2-0 && \
apt-get install -y --no-install-recommends libxslt1-dev locales software-properties-common cron && \
apt-get clean
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python3 get-pip.py
RUN pip install extruct
RUN mkdir /server
WORKDIR /server
RUN gem update --system
RUN gem install bundler:2.3.12
COPY . /server
RUN bundle install
WORKDIR /server
#CMD ["rerun", "'ruby /server/fsp-harvester-server/app/controllers/application_controller.rb -o 0.0.0.0'"]
#CMD ["ruby", "./app/controllers/application_controller.rb", "-o", "0.0.0.0"]
ENTRYPOINT ["sh", "/server/entrypoint.sh"]