Spaces:
Runtime error
Runtime error
Jitesh Jain
commited on
Commit
·
f5c4dff
1
Parent(s):
e85ab2c
Root user
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -26,7 +26,7 @@ RUN pyenv install 3.8.15 && \
|
|
| 26 |
ENV WORKDIR=/code
|
| 27 |
WORKDIR $WORKDIR
|
| 28 |
RUN chown -R user:user $WORKDIR
|
| 29 |
-
RUN chmod -R
|
| 30 |
|
| 31 |
|
| 32 |
COPY requirements.txt $WORKDIR/requirements.txt
|
|
@@ -41,8 +41,8 @@ ARG TORCH_CUDA_ARCH_LIST=7.5+PTX
|
|
| 41 |
RUN pip install ninja
|
| 42 |
|
| 43 |
USER user
|
| 44 |
-
RUN chmod -R
|
| 45 |
-
RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py
|
| 46 |
RUN sh deform_setup.sh
|
| 47 |
|
| 48 |
USER user
|
|
|
|
| 26 |
ENV WORKDIR=/code
|
| 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
|
|
|
|
| 41 |
RUN pip install ninja
|
| 42 |
|
| 43 |
USER user
|
| 44 |
+
RUN chmod -R 777 $HOME/.pyenv
|
| 45 |
+
RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py build --build-base=$WORKDIR/ install --user && cd ..
|
| 46 |
RUN sh deform_setup.sh
|
| 47 |
|
| 48 |
USER user
|