Download hf_deploy/Dockerfile from gokashi/ml_in_elixir_code: direct link, hf CLI and curl.
- Browser
- Download file 726 Bytes
-
https://huggingface.co/gokashi/ml_in_elixir_code/resolve/main/hf_deploy/Dockerfile
- Command line
-
hf download hf://gokashi/ml_in_elixir_code/hf_deploy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/gokashi/ml_in_elixir_code/resolve/main/hf_deploy/Dockerfile
726 Bytes
| FROM ghcr.io/livebook-dev/livebook:0.15.1 | |
| # System deps for EXLA/NIFs | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| cmake \ | |
| curl \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set environment | |
| ENV LIVEBOOK_PORT=7860 | |
| ENV LIVEBOOK_IP=0.0.0.0 | |
| ENV LIVEBOOK_TOKEN="" | |
| ENV LIVEBOOK_IFRAME_PORT=7860 | |
| ENV MIX_ENV=prod | |
| ENV BUMBLEBEE_CACHE_DIR=/data/bumblebee | |
| ENV XLA_TARGET=cpu | |
| WORKDIR /app | |
| # Create cache dirs | |
| RUN mkdir -p /data/bumblebee /data/livebook | |
| # Copy notebook and setup script | |
| COPY ml_e2e_template.livemd /app/ml_e2e_template.livemd | |
| COPY setup.livemd /app/setup.livemd | |
| COPY startup.sh /app/startup.sh | |
| RUN chmod +x /app/startup.sh | |
| EXPOSE 7860 | |
| CMD ["/app/startup.sh"] | |