blitzkrieg0000 commited on
Commit
1387aa5
·
verified ·
1 Parent(s): 8e80e38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,13 +1,15 @@
1
  FROM pytorch/pytorch:2.4.1-cuda12.4-cudnn9-runtime
2
 
 
 
3
  RUN useradd -m -u 1000 user
 
4
 
5
  WORKDIR /app
6
- COPY --chown=user ./requirements.txt requirements.txt
7
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
8
  RUN pip install --no-cache-dir gradio opencv-python pandas ultralytics onnx onnxruntime
9
 
10
- COPY --chown=user . /app
11
 
12
  EXPOSE 1071
13
  CMD ["python", "/app/UI/Main.py"]
 
1
  FROM pytorch/pytorch:2.4.1-cuda12.4-cudnn9-runtime
2
 
3
+ ARG DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
  RUN useradd -m -u 1000 user
6
+ USER user
7
 
8
  WORKDIR /app
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
  RUN pip install --no-cache-dir gradio opencv-python pandas ultralytics onnx onnxruntime
11
 
12
+ COPY --chown=user ./ /app
13
 
14
  EXPOSE 1071
15
  CMD ["python", "/app/UI/Main.py"]