Spaces:
Build error
Build error
Commit
·
d55cd72
1
Parent(s):
5b3b75c
Update Dockerfile
Browse files- Dockerfile +10 -21
Dockerfile
CHANGED
@@ -1,30 +1,19 @@
|
|
1 |
-
|
2 |
-
ARG CUDA="11.1"
|
3 |
-
ARG CUDNN="8"
|
4 |
|
5 |
-
|
6 |
|
7 |
-
|
8 |
-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
|
9 |
-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
|
10 |
-
|
11 |
-
RUN apt-get update && apt-get install -y git ninja-build libglib2.0-0 libsm6 ffmpeg libxrender-dev libxext6 libgl1-mesa-glx \
|
12 |
-
&& apt-get clean \
|
13 |
-
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
COPY ./requirements.txt /code/requirements.txt
|
16 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
17 |
|
18 |
-
RUN pip install -U openmim
|
19 |
-
RUN mim install mmengine
|
20 |
-
RUN
|
21 |
-
|
22 |
-
RUN
|
23 |
-
|
24 |
-
|
25 |
-
RUN pip install -r requirements.txt
|
26 |
-
RUN pip install --no-cache-dir -e .
|
27 |
-
RUN pip install -r requirements/albu.txt
|
28 |
|
29 |
# Set up a new user named "user" with user ID 1000
|
30 |
RUN useradd -m -u 1000 user
|
|
|
1 |
+
FROM python:3.9
|
|
|
|
|
2 |
|
3 |
+
WORKDIR /code
|
4 |
|
5 |
+
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
9 |
|
10 |
+
RUN pip install -qq -U openmim
|
11 |
+
RUN mim install -U mmengine 'mmcv>=2.0.0rc1'
|
12 |
+
RUN pip install -qq openmim 'mmdet>=3.0.0rc0' 'mmocr==1.0.0rc0'
|
13 |
+
|
14 |
+
RUN wget https://github.com/napatswift/naplog/releases/download/v0.0.1/dbnet_resnet18_fpnc_1200e_icdar2015.tar.gz
|
15 |
+
RUN wget https://github.com/napatswift/naplog/releases/download/v0.0.1/nrtr_modality-transform_50e_thvl.tar.gz
|
16 |
+
RUN for f in *.tar.gz; do tar -zxf $f; done
|
|
|
|
|
|
|
17 |
|
18 |
# Set up a new user named "user" with user ID 1000
|
19 |
RUN useradd -m -u 1000 user
|