Spaces:
Runtime error
Runtime error
Commit
Β·
875388e
1
Parent(s):
4eff2f9
Update Dockerfile
Browse files- Dockerfile +12 -11
Dockerfile
CHANGED
|
@@ -3,26 +3,27 @@ FROM python:latest
|
|
| 3 |
ENV PYTHONUNBUFFERED 1
|
| 4 |
|
| 5 |
EXPOSE 8000
|
| 6 |
-
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
-
RUN
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
RUN pip install --upgrade pip && \
|
| 13 |
pip install -r requirements.txt
|
| 14 |
|
| 15 |
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
| 16 |
-
RUN apt-get install git-lfs
|
|
|
|
| 17 |
|
| 18 |
-
RUN git clone https://github.com/ggerganov/ggml && cd ggml && mkdir build && cd build && cmake ..
|
| 19 |
-
RUN git clone https://huggingface.co/bigcode/gpt_bigcode-santacoder
|
| 20 |
-
RUN python ggml/examples/starcoder/convert-hf-to-ggml.py ./gpt_bigcode-santacoder/
|
| 21 |
-
RUN cd ggml/build && make -j4 starcoder starcoder-quantize
|
| 22 |
|
| 23 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
-
COPY . .
|
| 26 |
|
| 27 |
RUN ls -al
|
| 28 |
|
|
|
|
| 3 |
ENV PYTHONUNBUFFERED 1
|
| 4 |
|
| 5 |
EXPOSE 8000
|
|
|
|
| 6 |
WORKDIR /app
|
| 7 |
|
| 8 |
+
RUN apt update && \
|
| 9 |
+
apt install --no-install-recommends -y curl && \
|
| 10 |
+
apt clean && rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
COPY requirements.txt main.py ./
|
| 13 |
RUN pip install --upgrade pip && \
|
| 14 |
pip install -r requirements.txt
|
| 15 |
|
| 16 |
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
| 17 |
+
RUN apt-get install git-lfs -y
|
| 18 |
+
RUN git clone https://huggingface.co/TheBloke/gorilla-7B-GGML
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
+
RUN useradd -m -u 1000 user
|
| 22 |
+
USER user
|
| 23 |
+
ENV HOME=/home/user \
|
| 24 |
+
PATH=/home/user/.local/bin:$PATH
|
| 25 |
|
| 26 |
+
COPY --chown=user . .
|
| 27 |
|
| 28 |
RUN ls -al
|
| 29 |
|