-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
36 lines (31 loc) · 1.28 KB
/
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 rubylang/ruby
MAINTAINER Kouhei Sutou <kou@clear-code.com>
RUN \
apt update --quiet && \
apt install --quiet -y apt-transport-https curl gnupg2 lsb-release wget && \
wget -O /usr/share/keyrings/apache-arrow-keyring.gpg \
https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/apache-arrow-keyring.gpg && \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/apache-arrow-keyring.gpg] https://dl.bintray.com/apache/arrow/$(lsb_release --id --short | tr 'A-Z' 'a-z')/ $(lsb_release --codename --short) main" > \
/etc/apt/sources.list.d/apache-arrow.list && \
curl https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
echo "deb http://apt.llvm.org/$(lsb_release --codename --short)/ llvm-toolchain-$(lsb_release --codename --short)-7 main" > \
/etc/apt/sources.list.d/llvm.list && \
apt update --quiet && \
apt install --quiet -y \
cmake \
libarrow-glib-dev \
libarrow-python-dev \
libparquet-dev \
libparquet-glib-dev \
libgirepository1.0-dev \
python3-pip \
python3-setuptools && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-binary :all: Cython && \
pip3 install --no-binary :all: pyarrow && \
pip3 install pandas
RUN mkdir /app
WORKDIR /app
COPY . /app
RUN bundle install
ENV PYTHON=python3