Mikecode123 commited on
Commit
9d729a1
·
verified ·
1 Parent(s): a643daf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -21
Dockerfile CHANGED
@@ -2,35 +2,21 @@ FROM python:3.10
2
 
3
  WORKDIR /app
4
 
5
- # =========================
6
- # SYSTEM DEPENDENCIES
7
- # =========================
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
- libglib2.0-0 \
11
- libsm6 \
12
- libxext6 \
13
- libxrender-dev \
14
- libgl1 \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
- # =========================
18
- # PYTHON DEPENDENCIES
19
- # =========================
20
  COPY requirements.txt .
 
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # =========================
24
- # COPY ENTIRE PROJECT (IMPORTANT FIX)
25
- # =========================
26
- COPY . .
 
 
27
 
28
- # =========================
29
- # PORT FOR HUGGING FACE
30
- # =========================
31
  EXPOSE 7860
32
 
33
- # =========================
34
- # START APP
35
- # =========================
36
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
 
 
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
 
 
9
  COPY requirements.txt .
10
+
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ COPY app.py .
14
+
15
+ COPY densenet121.pth .
16
+ COPY densenet169.pth .
17
+ COPY densenet201.pth .
18
+ COPY cnn3d.pth .
19
 
 
 
 
20
  EXPOSE 7860
21
 
 
 
 
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]