mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
* chore: update cuda version in container * fix: use symlink to fix error libcuda.so: cannot open shared object file: * fix: update docker entrypoint to use entry_with_update.py * feat: add container build & push workflow * fix: container action run conditions * fix: container action versions * fix: container action versions v2 * fix: docker action registry login and metadata * docs: adjust docker documentation based on latest changes, add docs for podman and docker * chore: replace image name env var with github.event.repository.name Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * chore: replace image name env var with github.event.repository.name (pt2) Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * fix: switch to semver versioning Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * fix: build only on versioned tags Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * fix: don't update in entrypoint Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * fix: remove dash in "docker-compose" Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> * feat: sync pytorch for docker with version used in prepare_environment * feat: update cuda to 12.4.1 * fix: correctly clone checked out version in builds, not always main * refactor: remove irrelevant version in docker-compose.yml --------- Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com> Co-authored-by: Manuel Schmid <dev@mash1t.de>
30 lines
1.1 KiB
Docker
30 lines
1.1 KiB
Docker
FROM nvidia/cuda:12.4.1-base-ubuntu22.04
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
ENV CMDARGS --listen
|
|
|
|
RUN apt-get update -y && \
|
|
apt-get install -y curl libgl1 libglib2.0-0 python3-pip python-is-python3 git && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements_docker.txt requirements_versions.txt /tmp/
|
|
RUN pip install --no-cache-dir -r /tmp/requirements_docker.txt -r /tmp/requirements_versions.txt && \
|
|
rm -f /tmp/requirements_docker.txt /tmp/requirements_versions.txt
|
|
RUN pip install --no-cache-dir xformers==0.0.23 --no-dependencies
|
|
RUN curl -fsL -o /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2 https://cdn-media.huggingface.co/frpc-gradio-0.2/frpc_linux_amd64 && \
|
|
chmod +x /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2
|
|
|
|
RUN adduser --disabled-password --gecos '' user && \
|
|
mkdir -p /content/app /content/data
|
|
|
|
COPY entrypoint.sh /content/
|
|
RUN chown -R user:user /content
|
|
|
|
WORKDIR /content
|
|
USER user
|
|
|
|
COPY . /content/app
|
|
RUN mv /content/app/models /content/app/models.org
|
|
|
|
CMD [ "sh", "-c", "/content/entrypoint.sh ${CMDARGS}" ]
|