Spaces:
Sleeping
Sleeping
Download Dockerfile from PerlaHM/pradohernandez: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/PerlaHM/pradohernandez/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PerlaHM/pradohernandez/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PerlaHM/pradohernandez/resolve/main/Dockerfile
373 Bytes
| FROM debian:12.10 | |
| RUN apt -y update | |
| RUN apt install -y python3 python3-django python3-mysqldb | |
| RUN mkdir app-itsz -p | |
| WORKDIR app-itsz | |
| COPY app ./mysite | |
| WORKDIR mysite | |
| RUN touch db.sqlite3 | |
| RUN ls -la | |
| RUN chmod 777 db.sqlite3 | |
| RUN chmod 777 ./polls/migrations | |
| CMD python3 manage.py makemigrations; \ | |
| python3 manage.py migrate; \ | |
| python3 manage.py runserver 0:7860 |