forked from sql-machine-learning/sqlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (21 loc) · 904 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 ubuntu:16.04
RUN apt-get update && apt-get install -y curl bzip2 \
build-essential unzip sqlite3 libsqlite3-dev wget unzip git \
openjdk-8-jdk maven
# Need Java SDK to build remote parsers.
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# Miniconda - Python 3.6, 64-bit, x86, latest
ARG CONDA_ADD_PACKAGES=""
ARG PIP_ADD_PACKAGES=""
ARG TENSORFLOW_VERSION="2.0.0-b1"
ENV GOPATH /go
ENV PATH /miniconda/envs/sqlflow-dev/bin:/miniconda/bin:/usr/local/go/bin:/go/bin:$PATH
ENV IPYTHON_STARTUP /root/.ipython/profile_default/startup/
# Main Steps to Build
COPY scripts/image_build.sh /image_build.sh
RUN bash /image_build.sh && rm -f /image_build.sh
VOLUME /var/lib/mysql
# Prepare sample datasets
COPY example/datasets/popularize_churn.sql example/datasets/popularize_iris.sql example/datasets/create_model_db.sql /docker-entrypoint-initdb.d/
ADD scripts/start.sh /
CMD ["bash", "/start.sh"]