Commit
·
7633641
1
Parent(s):
068b56b
Update Dockerfile
Browse files- Dockerfile +7 -13
Dockerfile
CHANGED
@@ -4,26 +4,20 @@ ENV PYTHONUNBUFFERED 1
|
|
4 |
|
5 |
EXPOSE 8000
|
6 |
|
7 |
-
|
|
|
|
|
|
|
8 |
|
9 |
-
|
10 |
|
11 |
COPY requirements.txt ./
|
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 |
-
|
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 ggml/build/bin/starcoder-quantize models/./gpt_bigcode-santacoder/-ggml.bin ggml-model-q4_0.bin 2
|
24 |
-
|
25 |
-
COPY . .
|
26 |
|
27 |
RUN ls -al
|
28 |
|
29 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
4 |
|
5 |
EXPOSE 8000
|
6 |
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
USER user
|
9 |
+
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH
|
11 |
|
12 |
+
WORKDIR $HOME/app
|
13 |
|
14 |
COPY requirements.txt ./
|
15 |
RUN pip install --upgrade pip && \
|
16 |
pip install -r requirements.txt
|
17 |
|
|
|
|
|
18 |
|
19 |
+
COPY --chown=user . $HOME/app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
RUN ls -al
|
22 |
|
23 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|