-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (33 loc) · 881 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
ARG RUBY_VERSION="2.1"
FROM ruby:${RUBY_VERSION}
RUN apt-get update \
&& apt-get install -y python-pip \
python-dev \
liblapack-dev \
libjpeg-dev \
libpng-dev \
zlib1g-dev \
postgresql-client \
zip \
unzip \
gfortran
RUN ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.62.1.0 /usr/lib/libjpeg.so
RUN ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/libz.so
WORKDIR /usr/local
RUN git clone https://github.com/misasa/jxmap.git
RUN pip install future
RUN pip install numpy==1.6.2
RUN pip install -r ./jxmap/requirements.txt
RUN pip install ./jxmap
RUN useradd -m --home-dir /app epma
USER epma
WORKDIR /app
COPY --chown=epma:epma Gemfile Gemfile.lock /app/
RUN bundle config set --local path 'vendor/bundle'
RUN mkdir /app/vendor
COPY bundle.tar.gz /app/vendor
RUN cd /app/vendor && \
tar xvzf bundle.tar.gz && \
rm bundle.tar.gz
RUN bundle install
COPY . /app