Sergidev commited on
Commit
12da5b1
1 Parent(s): 0577dcd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  # Use the NVIDIA CUDA image as the base
2
  FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu20.04
3
 
 
 
 
4
  # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
6
  python3 \
@@ -36,5 +39,8 @@ RUN chown -R user:user /app
36
  # Switch to the "user" user
37
  USER user
38
 
 
 
 
39
  # Run the application
40
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Use the NVIDIA CUDA image as the base
2
  FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu20.04
3
 
4
+ # Set non-interactive mode for apt-get
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
  # Install system dependencies
8
  RUN apt-get update && apt-get install -y \
9
  python3 \
 
39
  # Switch to the "user" user
40
  USER user
41
 
42
+ # Set the PATH to include the user's local bin directory
43
+ ENV PATH="/home/user/.local/bin:$PATH"
44
+
45
  # Run the application
46
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]