mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-07 06:03:51 +01:00
20 lines
834 B
Docker
20 lines
834 B
Docker
# BUILDER
|
|
FROM ubuntu:22.04
|
|
WORKDIR /builder
|
|
ARG BUILD_EXTENSIONS="${BUILD_EXTENSIONS:-}"
|
|
ARG APP_UID="${APP_UID:-6972}"
|
|
ARG APP_GID="${APP_GID:-6972}"
|
|
|
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,rw \
|
|
apt update && \
|
|
apt install --no-install-recommends -y git vim build-essential python3-dev pip bash curl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /home/app/
|
|
RUN git clone https://github.com/oobabooga/text-generation-webui.git
|
|
WORKDIR /home/app/text-generation-webui
|
|
RUN GPU_CHOICE=B LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=TRUE ./start_linux.sh --verbose
|
|
EXPOSE ${CONTAINER_PORT:-7860} ${CONTAINER_API_PORT:-5000}
|
|
WORKDIR /home/app/text-generation-webui
|
|
# set umask to ensure group read / write at runtime
|
|
CMD umask 0002 && export HOME=/home/app/text-generation-webui && ./start_linux.sh --listen
|