-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
35 lines (28 loc) · 810 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
# stage 0)
FROM astronomerinc/ap-airflow:0.7.5-1.10.1-onbuild AS stage_0
# Define en_US.
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LC_CTYPE en_US.UTF-8
ENV LC_MESSAGES en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Set up env var
ENV HOME /
ENV SPARK_HOME /spark
WORKDIR $HOME
COPY . $HOME
# Install Java
RUN apk update && apk add git
RUN apk add openjdk8
# Install Spark
RUN /bin/bash -c "source install_pyspark.sh"
# Install scikit-learn
#RUN pip install --upgrade scikit-learn
# Expose port 8000
EXPOSE 8080
# ----------------------- dev -----------------------
#https://github.com/astronomerio-archive/docker-airflow/blob/master/Dockerfile
#ENV PYTHONPATH ${PYTHONPATH}:${AIRFLOW_HOME}
#ENV PYTHONPATH ${PYTHONPATH}:${pwd}
# ----------------------- dev -----------------------