-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 1.07 KB
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
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y bash sudo apt-utils git pip python3 python3-venv python3-pkgconfig libavformat-dev libavdevice-dev gcc perl make ffmpeg openssl libtcmalloc-minimal4
# Setup user biniou and use it to install
RUN adduser --disabled-password --gecos '' biniou
USER biniou
# Pull repo
RUN cd /home/biniou && git clone --branch main https://github.com/Woolverine94/biniou.git
WORKDIR /home/biniou/biniou
# Install biniou
RUN ./install.sh
RUN mkdir -p /home/biniou/.cache/huggingface -p /home/biniou/biniou/gfpgan
RUN chmod +x /home/biniou/biniou/webui.sh
# Replace pyTorch cpu-only version by CUDA-enabled one
# RUN mkdir -p /home/biniou/biniou/.ini && echo "-DLLAMA_CUDA=on" > /home/biniou/biniou/.ini/llamacpp_backend.cfg
# RUN . ./env/bin/activate && pip uninstall -y torch torchvision torchaudio llama-cpp-python && ./update_cuda.sh && deactivate
ENV DEBIAN_FRONTEND=dialog
# Exposing port 7860
EXPOSE 7860/tcp
# Launch at startup
ENTRYPOINT ["/home/biniou/biniou/webui.sh"]