Spaces:
Runtime error
Runtime error
Commit
·
8c3e2d5
1
Parent(s):
55d4cfd
Upload Dockerfile (3).txt
Browse files- Dockerfile (3).txt +38 -0
Dockerfile (3).txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:stable
|
2 |
+
|
3 |
+
# Install system packages
|
4 |
+
RUN apt update && apt install -y git pip
|
5 |
+
|
6 |
+
# Create non-root user
|
7 |
+
RUN useradd -m -d /bark bark
|
8 |
+
|
9 |
+
# Run as new user
|
10 |
+
USER bark
|
11 |
+
WORKDIR /bark
|
12 |
+
|
13 |
+
# Clone git repo
|
14 |
+
RUN git clone https://github.com/C0untFloyd/bark-gui
|
15 |
+
|
16 |
+
# Switch to git directory
|
17 |
+
WORKDIR /bark/bark-gui
|
18 |
+
|
19 |
+
# Append pip bin path to PATH
|
20 |
+
ENV PATH=$PATH:/bark/.local/bin
|
21 |
+
|
22 |
+
# Install dependancies
|
23 |
+
RUN pip install .
|
24 |
+
RUN pip install -r requirements.txt
|
25 |
+
|
26 |
+
# List on all addresses, since we are in a container.
|
27 |
+
RUN sed -i "s/server_name: ''/server_name: 0.0.0.0/g" ./config.yaml
|
28 |
+
|
29 |
+
# Suggested volumes
|
30 |
+
VOLUME /bark/bark-gui/assets/prompts/custom
|
31 |
+
VOLUME /bark/bark-gui/models
|
32 |
+
VOLUME /bark/.cache/huggingface/hub
|
33 |
+
|
34 |
+
# Default port for web-ui
|
35 |
+
EXPOSE 7860/tcp
|
36 |
+
|
37 |
+
# Start script
|
38 |
+
CMD python3 webui.py
|