nami0342 commited on
Commit
9e2f6a9
·
1 Parent(s): 360fd58

Update docker file and Readme.md

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -25
  2. README.md +0 -2
Dockerfile CHANGED
@@ -1,30 +1,9 @@
1
- FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
2
 
3
- # Set working directory
4
- WORKDIR /
5
-
6
- # Install system dependencies
7
- RUN apt-get update && apt-get install -y \
8
- git \
9
- libgl1-mesa-glx \
10
- libglib2.0-0 \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # Copy requirements file
14
- COPY requirements.txt .
15
-
16
- # Install Python dependencies
17
- RUN pip install --no-cache-dir -r requirements.txt
18
-
19
- # Copy the application code
20
  COPY . .
21
 
22
- # Set environment variables
23
- ENV PYTHONUNBUFFERED=1
24
- ENV CUDA_VISIBLE_DEVICES=0
25
 
26
- # Expose port (if your app needs it)
27
- EXPOSE 7860
28
 
29
- # Command to run the application
30
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10.9
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  COPY . .
4
 
5
+ WORKDIR /
 
 
6
 
7
+ RUN pip install --no-cache-dir --upgrade -r /requirements.txt
 
8
 
9
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
README.md CHANGED
@@ -1,13 +1,11 @@
1
  ---
2
  title: GEN_VTON_API
3
- emoji: 🏆
4
  colorFrom: pink
5
  colorTo: gray
6
  sdk: docker
7
  app_file: app.py
8
  pinned: false
9
  license: apache-2.0
10
- short_description: IDM API Version
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: GEN_VTON_API
 
3
  colorFrom: pink
4
  colorTo: gray
5
  sdk: docker
6
  app_file: app.py
7
  pinned: false
8
  license: apache-2.0
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference