maximedenes commited on
Commit
7679d4b
Β·
1 Parent(s): ff2663b

Install PyTorch as a dependency

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. backend/Dockerfile.dev +3 -0
Dockerfile CHANGED
@@ -17,6 +17,9 @@ RUN useradd -m -u 1000 user
17
  # Install poetry
18
  RUN pip install poetry
19
 
 
 
 
20
  # Create and configure cache directory
21
  RUN mkdir -p /app/.cache && \
22
  chown -R user:user /app
 
17
  # Install poetry
18
  RUN pip install poetry
19
 
20
+ # Install PyTorch
21
+ RUN pip install torch
22
+
23
  # Create and configure cache directory
24
  RUN mkdir -p /app/.cache && \
25
  chown -R user:user /app
backend/Dockerfile.dev CHANGED
@@ -10,6 +10,9 @@ RUN apt-get update && apt-get install -y \
10
  # Install poetry
11
  RUN pip install poetry
12
 
 
 
 
13
  # Copy Poetry configuration files
14
  COPY pyproject.toml poetry.lock* ./
15
 
 
10
  # Install poetry
11
  RUN pip install poetry
12
 
13
+ # Install PyTorch
14
+ RUN pip install torch
15
+
16
  # Copy Poetry configuration files
17
  COPY pyproject.toml poetry.lock* ./
18