File tree Expand file tree Collapse file tree 3 files changed +31
-32
lines changed Expand file tree Collapse file tree 3 files changed +31
-32
lines changed Original file line number Diff line number Diff line change 2
2
# SPDX-FileType: SOURCE
3
3
# SPDX-License-Identifier: Apache-2.0
4
4
5
- FROM python:3.8-slim-buster
5
+ FROM python:3.12
6
6
7
7
COPY . .
8
8
9
- RUN apt-get update && apt-get install -y --no-install-recommends build-essential libicu-dev libicu63 pkg-config && rm -rf /var/lib/apt/lists/*
10
-
11
- RUN pip3 install --upgrade pip setuptools
12
- RUN if [ -f docker_requirements.txt ]; then pip3 install -r docker_requirements.txt; fi
13
- RUN pip3 install -e .[full] && pip3 cache purge
9
+ RUN apt-get update && apt-get install -y --no-install-recommends build-essential libicu-dev python3-pip python3-venv pkg-config && rm -rf /var/lib/apt/lists/*
10
+ ENV VIRTUAL_ENV=/opt/venv
11
+ RUN python3 -m venv $VIRTUAL_ENV
12
+ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
13
+ RUN if [ -f docker_requirements.txt ]; then pip install -r docker_requirements.txt; fi
14
+ RUN pip install -e .[full] && pip cache purge
Original file line number Diff line number Diff line change 1
- PyYAML== 5.4.1
1
+ PyYAML>= 5.4.1,<6.0.2
2
2
attacut==1.0.6
3
- bpemb== 0.3.6
3
+ bpemb>= 0.3.6,<0.4
4
4
deepcut==0.7.0.0
5
- emoji== 0.6.0
5
+ emoji>= 0.6.0,<1
6
6
epitran==1.26.0
7
- esupar==1.3.9
8
- fairseq==0.12.2
9
- fastai==1.0.61
7
+ esupar>=1.3.9,<2
8
+ fairseq>=0.10.0,<0.13;python_version<"3.11"
9
+ fairseq-fixed==0.12.3.1,<0.13;python_version>="3.11"
10
+ fastai>=1.0.61,<2
10
11
fastcoref==2.1.6
11
- gensim==4.3.3
12
- h5py==3.13.0
13
- khanaa==0.0.6
14
- nlpo3==1.3.1
15
- nltk==3.6.6
16
- numpy==1.26.*
17
- OSKut==1.3
18
- pandas==2.2.*
12
+ gensim>=4.3.3,<5
13
+ khanaa>=0.1.1,<1
14
+ nlpo3>=1.3.1
15
+ nltk>=3.6.6,<4
16
+ numpy>=1.26.0,<2
17
+ pandas>=2.2.0,<3
19
18
panphon==0.21.2
20
19
phunspell==0.1.6
21
- protobuf==5.29.3
22
- pyicu==2.15.2
20
+ pyicu>=2.15.2,<3
23
21
python-crfsuite==0.9.11
24
- requests== 2.32.*
22
+ requests>= 2.32.0,<2.33
25
23
sacremoses==0.1.1
26
- sefr_cut==1.1
27
- sentence-transformers==2.7.0
24
+ sentence-transformers>=2.7.0,<3
28
25
sentencepiece==0.2.0
29
26
spacy_thai==0.7.8
30
- spacy==3.5.*
27
+ spacy==3.8.7,<4
31
28
ssg==0.0.8
32
29
symspellpy==6.9.0
33
- tensorflow==2.18.1
34
30
thai-nner==0.3
35
- tltk== 1.6.8
36
- torch== 1.13.1
31
+ tltk>= 1.6.8,<2
32
+ torch>= 1.13.1,<3
37
33
transformers==4.52.3
38
34
ufal.chu-liu-edmonds==1.0.3
39
35
wtpsplit==1.3.0
40
36
wunsen==0.0.3
41
- word2word== 1.0.0
37
+ word2word>= 1.0.0,<2
Original file line number Diff line number Diff line change 80
80
"thai2fit" : ["emoji>=0.5.1" , "gensim>=4.0.0" , "numpy>=1.22" ],
81
81
"thai2rom" : ["numpy>=1.22" , "torch>=1.0.0" ],
82
82
"translate" : [
83
- "fairseq>=0.10.0" ,
83
+ 'fairseq>=0.10.0,<0.13;python_version<"3.11"' ,
84
+ 'fairseq-fixed==0.12.3.1,<0.13;python_version>="3.11"' ,
84
85
"sacremoses>=0.0.41" ,
85
86
"sentencepiece>=0.1.91" ,
86
87
"torch>=1.0.0" ,
117
118
"bpemb>=0.3.2" ,
118
119
"emoji>=0.5.1" ,
119
120
"epitran>=1.1" ,
120
- "fairseq>=0.10.0" ,
121
+ 'fairseq>=0.10.0,<0.13;python_version<"3.11"' ,
122
+ 'fairseq-fixed==0.12.3.1,<0.13;python_version>="3.11"' ,
121
123
"fastai<2.0" ,
122
124
"fastcoref>=2.1.5" ,
123
125
"gensim>=4.0.0" ,
You can’t perform that action at this time.
0 commit comments