Download Dockerfile from com3dian/hackathon: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/com3dian/hackathon/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/com3dian/hackathon/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/com3dian/hackathon/resolve/main/Dockerfile
484 Bytes
| FROM python:3.11 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN python3 -m pip install --no-cache-dir --upgrade pip | |
| RUN python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| RUN mkdir -p /app/submissions && chmod -R 777 /app/submissions | |
| CMD ["panel", "serve", "/code/app.py", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "*"] | |
| RUN mkdir /.cache | |
| RUN chmod 777 /.cache | |
| RUN mkdir .chroma | |
| RUN chmod 777 .chroma |