praeclarumjj3 commited on
Commit
311617e
1 Parent(s): b089a29
Files changed (1) hide show
  1. Dockerfile +2 -4
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 777 $WORKDIR
30
 
31
 
32
  COPY requirements.txt $WORKDIR/requirements.txt
@@ -38,10 +38,8 @@ COPY . .
38
  ARG TORCH_CUDA_ARCH_LIST=7.5+PTX
39
 
40
  USER user
41
- RUN chmod -R 777 $HOME
42
- RUN chmod -R 777 $PATH
43
  RUN pip install ninja
44
- 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 ..
45
 
46
  RUN sh deform_setup.sh
47
 
 
26
  ENV WORKDIR=/code
27
  WORKDIR $WORKDIR
28
  RUN chown -R user:user $WORKDIR
29
+ RUN chmod -R 755 $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 pip install ninja
42
+ RUN ln -s $WORKDIR/oneformer/modeling/pixel_decoder/ops/ $WORKDIR/ && ls && cd ops/ && FORCE_CUDA=1 python setup.py build --build-base=$WORKDIR/ easy_install && cd ..
43
 
44
  RUN sh deform_setup.sh
45