From b62b606d30876ace3c40b1a62d1caf429cc00802 Mon Sep 17 00:00:00 2001 From: Bernhard Frauendienst Date: Thu, 7 Sep 2023 21:43:55 +0200 Subject: [PATCH] Add Dockerfile Based on ComfyUI PR #530 Co-Authored-By: ZacharyACoon --- .dockerignore | 7 +++++ Dockerfile | 71 +++++++++++++++++++++++++++++++++++++++++++++ README.md | 19 ++++++++++++ docker-compose.yaml | 20 +++++++++++++ 4 files changed, 117 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..d53bafa8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +__pycache__/ +*.py[cod] +input +models +notebooks +output diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d44c89e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,71 @@ +# syntax=docker/dockerfile:1 + +ARG PYTHON_VERSION=3.11 + +FROM python:${PYTHON_VERSION}-slim + +ARG PYTORCH_INSTALL_ARGS="" +ARG EXTRA_ARGS="" +ARG USERNAME=comfyui +ARG USER_UID=1000 +ARG USER_GID=${USER_UID} + +# Fail fast on errors or unset variables +SHELL ["/bin/bash", "-eux", "-o", "pipefail", "-c"] + +RUN <