Spaces:
Running
Running
Download update_dockerfile.py from Leon4gr45/needle: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/Leon4gr45/needle/resolve/main/update_dockerfile.py
- Command line
-
hf download hf://spaces/Leon4gr45/needle/update_dockerfile.py
-
curl -L -o update_dockerfile.py https://huggingface.co/spaces/Leon4gr45/needle/resolve/main/update_dockerfile.py
240 Bytes
| with open('Dockerfile', 'r') as f: | |
| content = f.read() | |
| content = content.replace("COPY gateway.py start.sh /srv/", "COPY gateway.py models.py registry.py laya.py start.sh /srv/") | |
| with open('Dockerfile', 'w') as f: | |
| f.write(content) | |