Mustehson commited on
Commit
a1e2edc
·
verified ·
1 Parent(s): 483db1c

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -47
Dockerfile DELETED
@@ -1,47 +0,0 @@
1
- ARG CUDA_IMAGE="12.1.1-devel-ubuntu22.04"
2
- FROM nvidia/cuda:${CUDA_IMAGE}
3
-
4
- ENV HOST 0.0.0.0
5
-
6
- RUN apt-get update && apt-get upgrade -y \
7
- && apt-get install -y git build-essential \
8
- python3 python3-pip gcc wget \
9
- ocl-icd-opencl-dev opencl-headers clinfo \
10
- libclblast-dev libopenblas-dev \
11
- && mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
12
-
13
- COPY . .
14
-
15
- # setting build related env vars
16
- ENV CUDA_DOCKER_ARCH=all
17
- ENV LLAMA_CUBLAS=1
18
-
19
- # Install depencencies
20
- RUN python3 -m pip install --upgrade pip pytest cmake \
21
- scikit-build setuptools fastapi uvicorn sse-starlette \
22
- pydantic-settings starlette-context gradio huggingface_hub hf_transfer \
23
- duckdb
24
-
25
- # Install llama-cpp-python (build with cuda)
26
- RUN CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
27
-
28
- RUN useradd -m -u 1000 user
29
- # Switch to the "user" user
30
- USER user
31
- # Set home to the user's home directory
32
- ENV HOME=/home/user \
33
- PATH=/home/user/.local/bin:$PATH \
34
- PYTHONPATH=$HOME/app \
35
- PYTHONUNBUFFERED=1 \
36
- GRADIO_ALLOW_FLAGGING=never \
37
- GRADIO_NUM_PORTS=1 \
38
- GRADIO_SERVER_NAME=0.0.0.0 \
39
- GRADIO_THEME=huggingface \
40
- SYSTEM=spaces
41
-
42
- WORKDIR $HOME/app
43
-
44
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
45
- COPY --chown=user . $HOME/app
46
-
47
- CMD ["python3", "app.py"]