superchatai commited on
Commit
f297e47
·
verified ·
1 Parent(s): 7295063

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,11 +1,19 @@
1
- FROM python:3.11-slim
 
 
 
 
 
 
2
 
3
  WORKDIR /app
4
 
5
- RUN pip install --no-cache-dir fastapi uvicorn python-multipart
6
 
7
  COPY app.py .
8
 
9
  EXPOSE 7860
10
 
11
- CMD uvicorn app:app --host 0.0.0.0 --port 7860
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ python3 \
5
+ python3-pip \
6
+ sudo \
7
+ && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
+ RUN pip3 install --no-cache-dir fastapi uvicorn python-multipart
12
 
13
  COPY app.py .
14
 
15
  EXPOSE 7860
16
 
17
+ USER root
18
+
19
+ CMD python3 -m uvicorn app:app --host 0.0.0.0 --port 7860