Spaces:
Sleeping
Sleeping
File size: 952 Bytes
d1aeaba 8541160 6a403c1 d1aeaba 6a403c1 fe21438 56a9e47 54538e1 6a403c1 d1aeaba 61dc085 d1aeaba 0f21e21 61dc085 3c7c9be daa8d73 6a403c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgomp1 \
unzip \
wget \
ca-certificates \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# RUN useradd -ms /bin/bash ubuntu
# Switch to user 'ubuntu'
USER ubuntu
RUN mkdir -p /home/ubuntu/.local/bin
RUN wget -O /tmp/tabby_x86_64-manylinux2014.zip https://github.com/TabbyML/tabby/releases/download/nightly/tabby_x86_64-manylinux2014.zip \
&& unzip /tmp/tabby_x86_64-manylinux2014.zip -d /tmp/tabby \
&& mv /tmp/tabby/dist/tabby_x86_64-manylinux2014/* /home/ubuntu/.local/bin/ \
&& rm -rf /tmp/tabby_x86_64-manylinux2014.zip /tmp/tabby
ENV PATH="/home/ubuntu/.local/bin:${PATH}"
WORKDIR /home/ubuntu
RUN chmod +x /home/ubuntu/.local/bin/tabby
RUN chmod +x /home/ubuntu/.local/bin/llama-server
CMD ["tabby", "serve", "--model", "TabbyML/StarCoder-1B"] |