Spaces:
Running
on
T4
Running
on
T4
praeclarumjj3
commited on
Commit
•
a0d4fd2
1
Parent(s):
93e1cb6
Fix user
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -27,7 +27,6 @@ ENV WORKDIR=/code
|
|
27 |
WORKDIR $WORKDIR
|
28 |
RUN chown -R user:user $WORKDIR
|
29 |
RUN chmod -R 777 $WORKDIR
|
30 |
-
RUN chmod -R 777 .
|
31 |
|
32 |
|
33 |
COPY requirements.txt $WORKDIR/requirements.txt
|
@@ -39,6 +38,8 @@ COPY . .
|
|
39 |
ARG TORCH_CUDA_ARCH_LIST=7.5+PTX
|
40 |
|
41 |
USER user
|
|
|
|
|
42 |
RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py build --build-base=$WORKDIR/ install && cd ..
|
43 |
|
44 |
RUN sh deform_setup.sh
|
|
|
27 |
WORKDIR $WORKDIR
|
28 |
RUN chown -R user:user $WORKDIR
|
29 |
RUN chmod -R 777 $WORKDIR
|
|
|
30 |
|
31 |
|
32 |
COPY requirements.txt $WORKDIR/requirements.txt
|
|
|
38 |
ARG TORCH_CUDA_ARCH_LIST=7.5+PTX
|
39 |
|
40 |
USER user
|
41 |
+
RUN chmod -R 777 /home
|
42 |
+
RUN pip install ninja
|
43 |
RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py build --build-base=$WORKDIR/ install && cd ..
|
44 |
|
45 |
RUN sh deform_setup.sh
|