Spaces:
Paused
Paused
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y sqlite3 && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
COPY requirements_afc.txt .
|
| 8 |
+
RUN pip install --no-cache-dir -r requirements_afc.txt
|
| 9 |
+
|
| 10 |
+
COPY afc_protocol.py .
|
| 11 |
+
COPY blurhash64.py .
|
| 12 |
+
COPY glyphforge.py .
|
| 13 |
+
COPY overlanguage.py .
|
| 14 |
+
COPY afc_server.py .
|
| 15 |
+
|
| 16 |
+
RUN mkdir -p /data
|
| 17 |
+
|
| 18 |
+
EXPOSE 7860
|
| 19 |
+
|
| 20 |
+
CMD ["python3", "afc_server.py"]
|