@@ -2,8 +2,12 @@ FROM nvcr.io/nvidia/tensorflow:20.12-tf2-py3
2
2
# NVIDIA DIGITS runs on Python 3.8
3
3
4
4
RUN apt-get update && \
5
- apt-get install -y libsm6 libxext6 libxrender-dev
6
-
5
+ apt-get install -y libsm6 libxext6 libxrender-dev mercurial libgdal-dev python3-gdal \
6
+ libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev \
7
+ libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev
8
+
9
+ ENV CPLUS_INCLUDE_PATH=/usr/include/gdal
10
+ ENV C_INCLUDE_PATH=/usr/include/gdal
7
11
ENV DEBIAN_FRONTEND=noninteractive \
8
12
MPLBACKEND=Svg \
9
13
PYTHONUNBUFFERED=1 \
@@ -14,10 +18,6 @@ ENV DEBIAN_FRONTEND=noninteractive \
14
18
15
19
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 2
16
20
17
- # WORKDIR /tmp
18
- # RUN curl https://bootstrap.pypa.io/get-pip.py | python3 && \
19
- # python3 -m pip install --no-cache-dir -U setuptools pip
20
-
21
21
# install NLP packages *mecab-ko & khai*
22
22
RUN apt-get update && \
23
23
apt-get install -y \
@@ -38,7 +38,7 @@ RUN apt-get update && \
38
38
RUN echo "Install mecab-ko-dic" && \
39
39
cd /tmp && \
40
40
ldconfig && \
41
- curl -LO https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gzv && \
41
+ curl -LO https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.1.1-20180720.tar.gz && \
42
42
tar -zxvf mecab-ko-dic-2.1.1-20180720.tar.gz && \
43
43
cd mecab-ko-dic-2.1.1-20180720 && \
44
44
./autogen.sh && \
@@ -147,6 +147,7 @@ RUN mkdir -p /opt/oracle && \
147
147
148
148
WORKDIR /tmp
149
149
RUN python3 -m pip install --no-cache-dir \
150
+ Cython==0.29.21 \
150
151
argon2_cffi==20.1.0
151
152
COPY ./requirements.txt /tmp
152
153
RUN python3 -m pip install --no-cache-dir -r requirements.txt && \
@@ -160,7 +161,7 @@ RUN cd /tmp && \
160
161
cp site.cfg.example site.cfg && \
161
162
pip uninstall -y typing && \
162
163
python3 -m pip install .
163
-
164
+
164
165
165
166
# install git-lfs
166
167
WORKDIR /tmp
0 commit comments