Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile GPU Support #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM debian:stable
# FROM nvidia/cuda:11.6.2-base-ubuntu20.04
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04

# Install system packages
RUN apt update && apt install -y git pip
ENV LD_LIBRARY_PATH=/usr/local/cuda/efa/lib:/usr/local/cuda/lib:/usr/local/cuda/lib64:/usr/local/cuda:/usr/lib/x86_64-linux-gnu

RUN apt update && apt install -qqy python3 python3-virtualenv python3-dev \
build-essential python3-pip git vim nano wget curl git-lfs ffmpeg

# Create non-root user
RUN useradd -m -d /bark bark
Expand All @@ -27,6 +30,10 @@ RUN pip install -r requirements.txt
RUN sed -i "s/server_name: ''/server_name: 0.0.0.0/g" ./config.yaml

# Suggested volumes
RUN mkdir -p /bark/bark-gui/assets/prompts/custom
RUN mkdir -p /bark/bark-gui/models
RUN mkdir -p /bark/.cache/huggingface/hub

VOLUME /bark/bark-gui/assets/prompts/custom
VOLUME /bark/bark-gui/models
VOLUME /bark/.cache/huggingface/hub
Expand Down