Spaces:
Runtime error
Runtime error
Download Dockerfile from zacharach/tabby-server: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/zacharach/tabby-server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/zacharach/tabby-server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zacharach/tabby-server/resolve/main/Dockerfile
1.19 kB
| FROM debian:bullseye-slim | |
| ARG PUBLICURL | |
| ENV TABBY_URL="https://github.com/TabbyML/tabby/releases/download/v0.29.0/tabby_x86_64-manylinux_2_28.tar.gz" \ | |
| TABBY_DIR="/app/tabby" \ | |
| TABBY_DISABLE_USAGE_COLLECTION=1 \ | |
| PUBLICURL=$PUBLICURL | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| curl \ | |
| ca-certificates \ | |
| libgomp1 \ | |
| sqlite3 \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| USER root | |
| RUN useradd -m -d ${TABBY_DIR} tabbyuser | |
| RUN mkdir -p ${TABBY_DIR} && mkdir -p ${TABBY_DIR}/.tabby/ee | |
| #COPY db.sqlite ${TABBY_DIR}/.tabby/ee/ | |
| #RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \ | |
| # sqlite3 ${TABBY_DIR}/.tabby/ee/db.sqlite \ | |
| # "UPDATE users SET auth_token='${TOKEN}' WHERE id=1; \ | |
| # UPDATE server_setting SET network_external_url='${PUBLICURL}' WHERE id=1;\ | |
| # " | |
| RUN chown -R tabbyuser:tabbyuser ${TABBY_DIR} | |
| RUN curl -k -L ${TABBY_URL} -o /tmp/tabby.tar.gz && \ | |
| tar --strip-components=1 -xvzf /tmp/tabby.tar.gz -C ${TABBY_DIR} && \ | |
| rm /tmp/tabby.tar.gz | |
| RUN chmod +x ${TABBY_DIR}/tabby | |
| EXPOSE 8080 | |
| USER tabbyuser | |
| WORKDIR ${TABBY_DIR} | |
| CMD ./tabby serve --model StarCoder-1B --chat-model Qwen2.5-Coder-0.5B-Instruct | |