Skip to content

Commit

Permalink
Add copy overlay for easily building serverless workers [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Nov 10, 2023
1 parent 55a4cd8 commit 8fa1b8b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
workspace
build/COPY_ROOT_EXTRA/opt/model_repository/
build/COPY_ROOT_EXTRA/
config/authorized_keys
config/rclone
tpdocs/
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ ENV OPT_SYNC=ComfyUI:$OPT_SYNC
ENV MAMBA_DEFAULT_ENV=comfyui
ENV MAMBA_DEFAULT_RUN="micromamba run -n $MAMBA_DEFAULT_ENV"

# Copy overrides and models into a final layer for fast rebuilds
COPY ./COPY_ROOT_EXTRA/ /

# Keep init.sh as-is and place additional logic in /opt/ai-dock/bin/preflight.sh
CMD ["init.sh"]

0 comments on commit 8fa1b8b

Please sign in to comment.