Update Dockerfile

#6
by luguog - opened
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,15 +1,18 @@
1
  FROM python:3.11-slim
2
 
3
- RUN apt-get update && apt-get install -y p7zip-full genisoimage && rm -rf /var/lib/apt/lists/*
 
 
4
 
5
  WORKDIR /app
6
 
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- COPY app.py .
11
- COPY static/ static/
12
 
13
- ENV PYTHONUNBUFFERED=1
 
 
14
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
 
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ p7zip-full \
5
+ && rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
 
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ COPY . .
 
13
 
14
+ RUN mkdir -p data/uploads data/extracted data/webapps static
15
+
16
+ EXPOSE 7860
17
 
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]