-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·36 lines (26 loc) · 978 Bytes
/
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
FROM ubuntu:23.10
WORKDIR app
ADD ./version.txt version
# sed -i s/ports.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list &&\
# sed -i s/archive.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list &&\
# sed -i s/security.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list &&\
# pip install -i https://mirrors.aliyun.com/pypi/simple/ \
RUN \
apt-get update && \
apt-get install -y git pkg-config bash \
python3-full python3-pip python3-aiohttp &&\
update-alternatives --install /usr/bin/python python /usr/bin/python3 1 &&\
pip install --break-system-packages \
setuptools==66.0.0 \
urllib3==1.26.16 \
scipy transformers huggingface_hub packaging \
tqdm requests cython \
torch onnx && apt-get clean -y
# RUN git clone --depth=1 https://github.com/FlagAI-Open/FlagAI.git
RUN git clone --depth=1 https://github.com/xxaier/FlagAI.git
ADD os/ /
RUN cd FlagAI &&\
rm setup.cfg &&\
python setup.py install
RUN pip uninstall -y google-auth
ENV PYTHONPATH=/app