-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (28 loc) · 1.11 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
FROM frolvlad/alpine-glibc:alpine-3.7
ENV CONDA_DIR="/opt/conda"
ENV PATH="/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$CONDA_DIR/bin"
# Install conda
RUN CONDA_VERSION="4.3.14" && \
CONDA_MD5_CHECKSUM="fc6fc37479e3e3fcf3f9ba52cae98991" && \
\
apk add --no-cache --virtual=.build-dependencies wget ca-certificates bash && \
\
mkdir -p "$CONDA_DIR" && \
wget "http://repo.continuum.io/miniconda/Miniconda3-${CONDA_VERSION}-Linux-x86_64.sh" -O miniconda.sh && \
echo "$CONDA_MD5_CHECKSUM miniconda.sh" | md5sum -c && \
bash miniconda.sh -f -b -p "$CONDA_DIR" && \
echo "export PATH=$CONDA_DIR/bin:\$PATH" > /etc/profile.d/conda.sh && \
rm miniconda.sh && \
\
conda update --all --yes && \
conda config --set auto_update_conda False && \
rm -r "$CONDA_DIR/pkgs/" && \
\
apk del --purge .build-dependencies && \
\
mkdir -p "$CONDA_DIR/locks" && \
chmod 777 "$CONDA_DIR/locks" && \
apk add --update libstdc++
RUN pip install numpy scipy scikit_learn pandas
ADD linear-regression.py /
ENTRYPOINT ["python3", "/linear-regression.py"]