Perth0603 commited on
Commit
b260cce
·
verified ·
1 Parent(s): b057179

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -28
Dockerfile DELETED
@@ -1,28 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- ENV PYTHONDONTWRITEBYTECODE=1 \
4
- PYTHONUNBUFFERED=1 \
5
- PIP_NO_CACHE_DIR=1
6
-
7
- WORKDIR /app
8
-
9
- # Writable cache directory for HF/torch
10
- RUN mkdir -p /data/.cache && chmod -R 777 /data
11
- ENV HF_HOME=/data/.cache \
12
- TRANSFORMERS_CACHE=/data/.cache \
13
- TORCH_HOME=/data/.cache
14
-
15
- # System deps (optional but helps with torch wheels)
16
- RUN apt-get update && apt-get install -y --no-install-recommends \
17
- build-essential git && \
18
- rm -rf /var/lib/apt/lists/*
19
-
20
- COPY requirements.txt /app/requirements.txt
21
- RUN pip install -r /app/requirements.txt
22
-
23
- COPY app.py /app/app.py
24
-
25
- EXPOSE 7860
26
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
27
-
28
-