Spaces:
Runtime error
Runtime error
Download Dockerfile from SADCPVIEW/SADCP_VIEWER_v0.01: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/spaces/SADCPVIEW/SADCP_VIEWER_v0.01/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SADCPVIEW/SADCP_VIEWER_v0.01/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SADCPVIEW/SADCP_VIEWER_v0.01/resolve/main/Dockerfile
837 Bytes
| FROM python:3.11.7 | |
| 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 . . | |
| # Add step to download data.tar from URL and extract its contents to /data/ | |
| RUN mkdir data \ | |
| && chmod 777 data \ | |
| && apt-get update \ | |
| && apt-get install -y wget tar \ | |
| && wget https://data-eurogoship.ifremer.fr/data.tar \ | |
| && tar -xvf data.tar -C data/ \ | |
| && rm data.tar \ | |
| && ls data/ | |
| 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 /.config | |
| RUN chmod 777 /.config | |
| RUN mkdir .chroma | |
| RUN chmod 777 .chroma | |
| RUN mkdir /.local | |
| RUN chmod 777 /.local | |
| RUN pwd \ | |
| && ls | |