Skip to content
This repository was archived by the owner on Jun 25, 2019. It is now read-only.

Commit da07c38

Browse files
committed
optimize container build
1 parent dd779e7 commit da07c38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
FROM jruby:1.7.22-jdk
22
MAINTAINER Manuel Aristaran <manuel@jazzido> (@manuelaristaran)
33

4-
RUN apt-get update && apt-get install -y git software-properties-common mupdf-tools --no-install-recommends
5-
RUN add-apt-repository -y "deb http://httpredir.debian.org/debian jessie contrib" && apt-get update && apt-get install -y ttf-mscorefonts-installer
4+
5+
RUN echo "deb http://httpredir.debian.org/debian jessie contrib" > /etc/apt/sources.list.d/contrib.list
6+
RUN apt-get update && apt-get install -y git ttf-mscorefonts-installer mupdf-tools --no-install-recommends
67

78
RUN mkdir /tabula-data
89
VOLUME /tabula-data
910

10-
RUN git clone -b master https://github.com/tabulapdf/tabula.git /tabula
11+
RUN git clone --depth=10 -b master https://github.com/tabulapdf/tabula.git /tabula
1112
RUN cd /tabula && bundle install
1213

1314
ENV TABULA_DATA_DIR /tabula-data
1415

1516
EXPOSE 9292
1617

17-
CMD cd /tabula && TABULA_DATA_DIR=$TABULA_DATA_DIR rackup -o 0.0.0.0 -p 9292
18+
CMD cd /tabula && TABULA_DATA_DIR=$TABULA_DATA_DIR JRUBY_OPTS="--server" rackup -o 0.0.0.0 -p 9292

0 commit comments

Comments
 (0)