ksumhs commited on
Commit
7a873a2
·
verified ·
1 Parent(s): ed02105

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -18
Dockerfile CHANGED
@@ -2,35 +2,19 @@ FROM python:3.10-slim
2
 
3
  ENV PYTHONUNBUFFERED=1
4
 
5
- # ============================
6
- # Install Dependencies
7
- # ============================
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
- cmake \
11
  build-essential \
12
  libgl1 \
13
  libglib2.0-0 \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # ============================
17
- # Workdir
18
- # ============================
19
  WORKDIR /app
20
 
21
- # ============================
22
- # Install Requirements
23
- # ============================
24
- COPY requirements.txt /app/requirements.txt
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
- # ============================
28
- # Copy Application
29
- # ============================
30
- COPY . /app
31
 
32
- # ============================
33
- # Expose + Command
34
- # ============================
35
  EXPOSE 7860
36
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  ENV PYTHONUNBUFFERED=1
4
 
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
 
7
  build-essential \
8
  libgl1 \
9
  libglib2.0-0 \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
12
  WORKDIR /app
13
 
14
+ COPY requirements.txt .
 
 
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ COPY . .
 
 
 
18
 
 
 
 
19
  EXPOSE 7860
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]