Download stream_relay/Dockerfile from bryceweiner/fly-trader: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/bryceweiner/fly-trader/resolve/main/stream_relay/Dockerfile
- Command line
-
hf download hf://bryceweiner/fly-trader/stream_relay/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/bryceweiner/fly-trader/resolve/main/stream_relay/Dockerfile
336 Bytes
| FROM python:3.12-slim | |
| WORKDIR /relay | |
| COPY requirements.txt relay.py ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| USER nobody | |
| # glibc's thread cache keeps freed events from merging: with it on, the heap grows ~24 MB/h once the buffer is full | |
| ENV GLIBC_TUNABLES=glibc.malloc.tcache_count=0 | |
| EXPOSE 8443 | |
| CMD ["python", "relay.py"] | |