Spaces:
Running
on
T4
Running
on
T4
praeclarumjj3
commited on
Commit
•
3780a00
1
Parent(s):
57387a3
Fix user
Browse files- Dockerfile +32 -29
- deform_setup.sh +7 -7
Dockerfile
CHANGED
@@ -10,28 +10,30 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
14 |
-
RUN apt
|
15 |
-
RUN apt
|
16 |
-
RUN
|
17 |
-
RUN apt-get -y install python3
|
18 |
-
RUN apt
|
19 |
-
RUN apt install -y
|
20 |
-
RUN apt-get install -y
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
USER admin
|
25 |
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
ENV WORKDIR=/code
|
37 |
WORKDIR $WORKDIR
|
@@ -43,15 +45,16 @@ RUN chmod 755 $WORKDIR
|
|
43 |
|
44 |
COPY requirements.txt $WORKDIR/requirements.txt
|
45 |
COPY oneformer $WORKDIR/oneformer
|
46 |
-
RUN python3.8 --version
|
47 |
-
RUN which python3.8
|
48 |
-
RUN python3.8 -m pip install --upgrade pip
|
49 |
-
RUN python3.8 -m pip install multidict
|
50 |
-
RUN python3.8 -m pip install typing-extensions
|
51 |
-
RUN python3.8 -m pip install --upgrade setuptools
|
52 |
-
RUN python3.8 -m pip install wheel
|
53 |
-
RUN python3.8 -m pip install cython
|
54 |
-
RUN python3.8 -m pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
|
|
|
55 |
|
56 |
COPY . .
|
57 |
|
@@ -64,4 +67,4 @@ USER admin
|
|
64 |
|
65 |
EXPOSE 7860
|
66 |
|
67 |
-
ENTRYPOINT ["
|
|
|
10 |
ffmpeg libsm6 libxext6 cmake libgl1-mesa-glx \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
+
# RUN apt-get -y update
|
14 |
+
# RUN apt install -y software-properties-common
|
15 |
+
# RUN add-apt-repository ppa:deadsnakes/ppa
|
16 |
+
# RUN apt-get -y install python3.8
|
17 |
+
# RUN apt-get -y install python3-pip
|
18 |
+
# RUN apt install -y python3.8-distutils
|
19 |
+
# RUN apt-get install -y gcc
|
20 |
+
# RUN apt-get install -y python3.8-dev
|
21 |
+
|
22 |
+
# RUN useradd -ms /bin/bash admin
|
23 |
+
# USER admin
|
24 |
+
|
25 |
+
RUN useradd -ms /bin/bash user
|
26 |
USER admin
|
27 |
|
28 |
+
ENV HOME=/home/user \
|
29 |
+
PATH=/home/user/.local/bin:$PATH
|
30 |
|
31 |
+
RUN curl https://pyenv.run | bash
|
32 |
+
ENV PATH=$HOME/.pyenv/shims:$HOME/.pyenv/bin:$PATH
|
33 |
+
RUN pyenv install 3.8.15 && \
|
34 |
+
pyenv global 3.8.15 && \
|
35 |
+
pyenv rehash && \
|
36 |
+
pip install --no-cache-dir --upgrade pip setuptools wheel
|
37 |
|
38 |
ENV WORKDIR=/code
|
39 |
WORKDIR $WORKDIR
|
|
|
45 |
|
46 |
COPY requirements.txt $WORKDIR/requirements.txt
|
47 |
COPY oneformer $WORKDIR/oneformer
|
48 |
+
# RUN python3.8 --version
|
49 |
+
# RUN which python3.8
|
50 |
+
# RUN python3.8 -m pip install --upgrade pip
|
51 |
+
# RUN python3.8 -m pip install multidict
|
52 |
+
# RUN python3.8 -m pip install typing-extensions
|
53 |
+
# RUN python3.8 -m pip install --upgrade setuptools
|
54 |
+
# RUN python3.8 -m pip install wheel
|
55 |
+
# RUN python3.8 -m pip install cython
|
56 |
+
# RUN python3.8 -m pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
|
57 |
+
RUN pip install --no-cache-dir --upgrade -r $WORKDIR/requirements.txt
|
58 |
|
59 |
COPY . .
|
60 |
|
|
|
67 |
|
68 |
EXPOSE 7860
|
69 |
|
70 |
+
ENTRYPOINT ["python", "gradio_app.py"]
|
deform_setup.sh
CHANGED
@@ -13,10 +13,10 @@ pip3 freeze | grep natten
|
|
13 |
echo '----------------------------------------------------------------'
|
14 |
echo '----------------------------------------------------------------'
|
15 |
|
16 |
-
echo '----------------------------------------------------------------'
|
17 |
-
echo '----------------------------------------------------------------'
|
18 |
-
cd /home/user/.pyenv/versions/3.8.15/lib/python3.8/site-packages
|
19 |
-
ls
|
20 |
-
ls | grep MultiScale
|
21 |
-
echo '----------------------------------------------------------------'
|
22 |
-
echo '----------------------------------------------------------------'
|
|
|
13 |
echo '----------------------------------------------------------------'
|
14 |
echo '----------------------------------------------------------------'
|
15 |
|
16 |
+
# echo '----------------------------------------------------------------'
|
17 |
+
# echo '----------------------------------------------------------------'
|
18 |
+
# cd /home/user/.pyenv/versions/3.8.15/lib/python3.8/site-packages
|
19 |
+
# ls
|
20 |
+
# ls | grep MultiScale
|
21 |
+
# echo '----------------------------------------------------------------'
|
22 |
+
# echo '----------------------------------------------------------------'
|