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