FJDorfner commited on
Commit
4ca827d
·
verified ·
1 Parent(s): 8698321

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -2
Dockerfile CHANGED
@@ -7,9 +7,20 @@ WORKDIR /app
7
  # Install system dependencies including curl
8
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
9
 
 
 
 
 
 
 
 
 
 
 
 
10
  # Download the model files from Zenodo
11
- RUN curl -o classification_model.ckpt -L https://zenodo.org/record/11116990/files/classification_model.ckpt
12
- RUN curl -o segmentation_model.pt -L https://zenodo.org/record/11116990/files/segmentation_model.pt
13
 
14
  # Copy the current directory contents into the container at /app
15
  COPY . /app
 
7
  # Install system dependencies including curl
8
  RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Install Rust and Cargo
11
+ RUN apt-get update && \
12
+ apt-get install -y curl && \
13
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
14
+ export PATH="$HOME/.cargo/bin:$PATH" && \
15
+ apt-get clean && \
16
+ rm -rf /var/lib/apt/lists/*
17
+
18
+ # Ensure Cargo is in the PATH
19
+ ENV PATH="/root/.cargo/bin:${PATH}"
20
+
21
  # Download the model files from Zenodo
22
+ #RUN curl -o classification_model.ckpt -L https://zenodo.org/record/11116990/files/classification_model.ckpt
23
+ #RUN curl -o segmentation_model.pt -L https://zenodo.org/record/11116990/files/segmentation_model.pt
24
 
25
  # Copy the current directory contents into the container at /app
26
  COPY . /app