Skip to content

Commit cca1ac2

Browse files
Moved the Source Code to a Source Directory
Moved the Dockerfile and the entrypoint script to a new source directory and updated all references accordingly. Also, fixed the instructions in the read me file to build the image from the source directory.
1 parent 6233f75 commit cca1ac2

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
import re
6969
7070
def get_version(version_variable_name: str) -> str:
71-
with open('Dockerfile', mode='r', encoding='utf-8') as dockerfile:
71+
with open('source/Dockerfile', mode='r', encoding='utf-8') as dockerfile:
7272
match = re.search(
7373
rf'^ARG {version_variable_name}=v?([0-9\.-a-z]+)$',
7474
dockerfile.read(),
@@ -108,7 +108,7 @@ jobs:
108108
id: build-and-push-docker-image
109109
uses: docker/build-push-action@v6
110110
with:
111-
context: .
111+
context: source
112112
push: true
113113
tags: ${{ steps.docker-image-metadata.outputs.tags }}
114114
labels: ${{ steps.docker-image-metadata.outputs.labels }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Updated the ComfyUI Manager version to the latest version (from ComfyUI Manager 3.31.8 to ComfyUI Manager 3.33).
88
- The version numbers of ComfyUI, ComfyUI Manager, and the base image are now stored in arguments in the Dockerfile. This makes it easier to update the image in the future, because the version numbers can be changed in one place at the top of the Dockerfile.
99
- The ComfyUI and ComfyUI Manager repositories are now cloned with the `--depth 1` option followed by only fetching the specific tag of the specified version, which reduces the size of the image by not including the full commit history.
10+
- Moved the [`Dockerfile`](source/Dockerfile) and the [`entrypoint.sh`](source/entrypoint.sh) script to a new [`source`](source) directory, which is the standard directory for storing source code in Git repositories.
1011
- A [list of contributors to the project](CONTRIBUTORS.md) was added to the repository.
1112
- This version of ComfyUI Docker was made possible by the contributions of [Chris TenHarmsel](@epchris).
1213

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ If you want to use the bleeding edge development version of the Docker image, yo
7474

7575
```shell
7676
git clone https://github.com/lecode-official/comfyui-docker.git
77-
docker build --tag lecode/comfyui-docker:latest comfyui-docker
77+
docker build --tag lecode/comfyui-docker:latest source
7878
```
7979

8080
Now, a container can be started like so:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)