-
Notifications
You must be signed in to change notification settings - Fork 53
/
Dockerfile
29 lines (21 loc) · 898 Bytes
/
Dockerfile
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
FROM debian:latest
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 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 . ./env/bin/activate && pip uninstall -y torch torchvision torchaudio && ./update_cuda.sh && deactivate
ENV DEBIAN_FRONTEND=dialog
# Exposing port 7860
EXPOSE 7860/tcp
# Launch at startup
CMD [ "/home/biniou/biniou/webui.sh" ]