neop3 commited on
Commit
33300e2
·
verified ·
1 Parent(s): b4e5fe0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -1,8 +1,18 @@
1
  FROM python:3.10-slim
2
 
 
 
 
3
  WORKDIR /app
4
 
5
- COPY app.py .
 
 
 
 
 
 
 
6
 
7
  EXPOSE 7860
8
 
 
1
  FROM python:3.10-slim
2
 
3
+ ENV PYTHONUNBUFFERED=1
4
+ ENV PYTHONDONTWRITEBYTECODE=1
5
+
6
  WORKDIR /app
7
 
8
+ RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ COPY . .
16
 
17
  EXPOSE 7860
18