1
1
FROM ubuntu:18.04
2
2
3
+ ARG WHL_DIR="/tmp/pip"
4
+
5
+
6
+
7
+
8
+
9
+
10
+
3
11
# Python 2.7 or 3.6 is supported by Ubuntu Bionic out of the box
4
12
ARG python=3.6
5
13
ENV PYTHON_VERSION=${python}
6
- ARG WHL_DIR="/tmp/pip"
7
14
8
15
ENV DEBIAN_FRONTEND=noninteractive \
9
16
MPLBACKEND=Svg \
10
17
PYTHONUNBUFFERED=1 \
18
+ \
19
+ \
11
20
PATH="/usr/local/sbin:/usr/bin/cmake/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bin/mecab" \
21
+ mecab_dicdir=/usr/local/lib/mecab/dic/mecab-ko-dic \
12
22
LANG=C.UTF-8
13
23
14
24
# Set default shell to /bin/bash
@@ -109,6 +119,8 @@ COPY ./numpy-1.18.5-cp36-cp36m-manylinux2010_x86_64.whl /tmp
109
119
COPY ./pandas-1.0.4+4.g29edbab4a-cp36-cp36m-linux_x86_64.whl /tmp
110
120
111
121
RUN python3 -m pip install --no-cache-dir --upgrade -Iv \
122
+ git+https://github.com/haven-jeon/PyKoSpacing.git \
123
+ git+https://github.com/ssut/py-hanspell.git \
112
124
Cython==0.29.20 \
113
125
/tmp/numpy-1.18.5-cp36-cp36m-manylinux2010_x86_64.whl \
114
126
/tmp/pandas-1.0.4+4.g29edbab4a-cp36-cp36m-linux_x86_64.whl \
@@ -127,7 +139,6 @@ RUN git clone --recursive https://github.com/bodono/scs-python.git && \
127
139
cd /tmp/scs-python && \
128
140
python3 setup.py install --scs
129
141
130
-
131
142
RUN python3 -m pip install pip --no-cache-dir \
132
143
Cartopy==0.18.0 \
133
144
notebook==6.0.3
@@ -166,6 +177,18 @@ RUN echo "Install mecab-ko-dic" && \
166
177
git clone https://bitbucket.org/eunjeon/mecab-python-0.996.git && \
167
178
python3 -m pip install /tmp/mecab-python-0.996
168
179
180
+ WORKDIR /tmp
181
+ RUN git clone https://github.com/kakao/khaiii.git && \
182
+ cd khaiii && \
183
+ mkdir -p build && \
184
+ cd build && \
185
+ cmake .. && \
186
+ make all && \
187
+ make resource && \
188
+ make install && \
189
+ make package_python && \
190
+ python3 -m pip install package_python
191
+
169
192
# OpenCV
170
193
RUN ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h && \
171
194
apt-get install -y \
@@ -203,7 +226,7 @@ RUN wget https://github.com/Kitware/CMake/releases/download/v3.15.3/cmake-3.15.3
203
226
rm /tmp/cmake-install.sh
204
227
205
228
WORKDIR /tmp
206
- ENV OPENCV_VERSION="4.3 .0"
229
+ ENV OPENCV_VERSION="4.4 .0"
207
230
RUN wget https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip && \
208
231
wget -O opencv-contrib.zip https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip && \
209
232
unzip ${OPENCV_VERSION}.zip && \
0 commit comments