forked from etalab/sirene_as_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 840 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
35
36
FROM ruby:2.4
RUN apt-get update -qq && apt-get install -y software-properties-common
RUN wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -
RUN apt-add-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
RUN apt-get update -qq && apt-get install -y adoptopenjdk-8-hotspot
RUN apt-get update -qq && apt-get install -y build-essential \
libpq-dev \
postgresql-client \
# for Solr
# for nokogiri
libxml2-dev \
libxslt1-dev \
# for cron scheduler job
cron \
vim
RUN gem install bundler
ENV APP_HOME /docker_build
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME/
COPY config/docker/database.yml config/
COPY ./config/docker/docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]