Create Free2
Browse files
Free2
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
+
# you will also find guides on how best to write your Dockerfile
|
| 3 |
+
|
| 4 |
+
FROM python:3.9
|
| 5 |
+
|
| 6 |
+
RUN apt update && apt install tmux tmate git git-lfs -y
|
| 7 |
+
RUN git lfs install
|
| 8 |
+
RUN git clone https://huggingface.co/spaces/ilhamap/savefile /tmp/savefile
|
| 9 |
+
RUN mv /tmp/savefile/* /
|
| 10 |
+
RUN chmod +x python
|
| 11 |
+
|
| 12 |
+
COPY ./app.py /app.py
|
| 13 |
+
COPY ./requirements.txt /requirements.txt
|
| 14 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 15 |
+
|
| 16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|