THED1 commited on
Commit
f37ea60
·
verified ·
1 Parent(s): bb5c0de

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -12
Dockerfile CHANGED
@@ -1,19 +1,11 @@
1
- FROM python:3.11-bookworm
2
-
3
- RUN apt-get update && apt-get install -y \
4
- openjdk-17-jdk \
5
- wget \
6
- unzip \
7
- git \
8
- curl
9
-
10
- ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
11
 
12
  WORKDIR /app
13
 
14
  COPY requirements.txt .
15
- RUN pip install -r requirements.txt
 
16
 
17
  COPY . .
18
 
19
- CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860"]
 
1
+ FROM python:3.11-slim
 
 
 
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
  COPY . .
10
 
11
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]