forked from wanitchayap/deepcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 1.76 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
37
38
39
40
41
FROM alpine:3.6
# Here we use several hacks collected from https://github.com/gliderlabs/docker-alpine/issues/11:
# 1. install GLibc (which is not the cleanest solution at all)
# 2. hotfix /etc/nsswitch.conf, which is apperently required by glibc and is not used in Alpine Linux
# Install glibc
RUN apk add --update wget ca-certificates && \
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.25-r0/glibc-2.25-r0.apk && \
apk add glibc-2.25-r0.apk && \
echo 'hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4' >> /etc/nsswitch.conf && \
apk del wget ca-certificates
# && \
# rm "$ALPINE_GLIBC_PACKAGE" "$ALPINE_GLIBC_BIN_PACKAGE" /var/cache/apk/*
# /usr/glibc/usr/bin/ldconfig "/lib" "/usr/glibc/usr/lib" && \
# Install python compiled for glibc
RUN apk add --update bash wget ca-certificates && \
wget "http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" && \
bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /usr/local/miniconda && \
rm ./Miniconda3-latest-Linux-x86_64.sh && \
ln -s ../miniconda/bin/* /usr/local/bin/ && \
apk del bash wget && \
rm /var/cache/apk/*
#RUN /usr/glibc/usr/bin/ldconfig /lib /usr/local/miniconda/lib
ENV PATH /usr/local/miniconda/bin:$PATH
RUN conda install -y python==3.6
RUN conda install -y numpy libgcc freetype pyzmq swig scipy
# jupyter matplotlib requests ipykernel
# RUN python -m ipykernel.kernelspec
RUN pip install https://pypi.python.org/packages/7d/d0/96269b9ecfcc55cb38779831595e0521c34ef4ecdeba08b1ba4194cc4813/tensorflow-1.2.1-cp36-cp36m-manylinux1_x86_64.whl#md5=525ab154b9e177f84fc7e15a38f891ff
RUN pip install deepcut
WORKDIR /root
ENTRYPOINT /bin/sh