AstraOS commited on
Commit
e357eb4
·
verified ·
1 Parent(s): 7800184

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -6
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- # Dockerfile
2
  FROM python:3.9-slim
3
 
4
- # 1) system deps
5
  RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
6
 
7
- # 2) python deps
8
  COPY requirements.txt .
9
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
10
 
11
- # 3) application code -> writable layer
12
- WORKDIR /app # ← writable because it’s created now
13
- COPY . . # app.py will be /app/app.py
14
 
15
  EXPOSE 7860
16
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.9-slim
2
 
 
3
  RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/*
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
7
 
8
+ WORKDIR /app
9
+ COPY . .
 
10
 
11
  EXPOSE 7860
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]