lydianish commited on
Commit
9d15c30
·
verified ·
1 Parent(s): a55d196

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -14,9 +14,6 @@ RUN apt-get update && \
14
  apt-get install -y git && \
15
  git clone https://github.com/lydianish/RoLASER.git /app/RoLASER
16
 
17
- # Switch to the non-root user
18
- USER user
19
-
20
  # Clone the RoLASER repository into the container
21
  WORKDIR /app/RoLASER
22
 
@@ -25,7 +22,6 @@ COPY --chown=user environment.yml /app/RoLASER/environment.yml
25
  RUN conda env create -f environment.yml
26
  RUN echo "conda activate rolaser_env" >> ~/.bashrc
27
  ENV PATH /opt/conda/envs/rolaser_env/bin:$PATH
28
- ENV ROLASER /app/RoLASER
29
 
30
  # Install PyTorch 1.10.1
31
  RUN pip3 install --no-cache-dir torch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu102/torch_stable.html
@@ -53,6 +49,10 @@ RUN git checkout rolaser \
53
  # Install other RoLASER dependencies
54
  WORKDIR /app/RoLASER
55
  RUN pip3 install --no-cache-dir -r /app/ROLASER_requirements.txt
 
 
 
 
56
 
57
  # Download models
58
  WORKDIR /app/RoLASER/models
 
14
  apt-get install -y git && \
15
  git clone https://github.com/lydianish/RoLASER.git /app/RoLASER
16
 
 
 
 
17
  # Clone the RoLASER repository into the container
18
  WORKDIR /app/RoLASER
19
 
 
22
  RUN conda env create -f environment.yml
23
  RUN echo "conda activate rolaser_env" >> ~/.bashrc
24
  ENV PATH /opt/conda/envs/rolaser_env/bin:$PATH
 
25
 
26
  # Install PyTorch 1.10.1
27
  RUN pip3 install --no-cache-dir torch==1.10.1 torchvision==0.11.2 torchaudio==0.10.1 -f https://download.pytorch.org/whl/cu102/torch_stable.html
 
49
  # Install other RoLASER dependencies
50
  WORKDIR /app/RoLASER
51
  RUN pip3 install --no-cache-dir -r /app/ROLASER_requirements.txt
52
+ ENV ROLASER /app/RoLASER
53
+
54
+ # Switch to the non-root user
55
+ USER user
56
 
57
  # Download models
58
  WORKDIR /app/RoLASER/models