Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-101 authored Apr 20, 2024
1 parent 2626a7d commit 9a452d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ RUN mkdir -p /blueprint_extensions /app
# Create the listen.sh script to monitor and sync blueprint files
RUN echo -e '#!/bin/sh\n\
# Initial sync on startup to ensure /app is up to date with /blueprint_extensions\n\
rsync -av --include="*blueprint*" --exclude="/app/.blueprint/" --exclude="*" --delete /blueprint_extensions/ /app/\n\
rsync -av --include="*blueprint*" --exclude="/app/.blueprint/" --exclude="/app/blueprint.sh" --exclude="*" --delete /blueprint_extensions/ /app/\n\
# Continuously watch for file changes in /blueprint_extensions\n\
while inotifywait -r -e create,delete,modify,move --include=".*\\.blueprint$" /blueprint_extensions; do\n\
rsync -av --include="*blueprint*" --exclude="/app/.blueprint/" --exclude="*" --delete /blueprint_extensions/ /app/\n\
rsync -av --include="*blueprint*" --exclude="/app/.blueprint/" --exclude="/app/blueprint.sh" --exclude="*" --delete /blueprint_extensions/ /app/\n\
done' > /listen.sh && chmod +x /listen.sh

# Set CMD to run the listen script in the background and start supervisord
Expand Down

0 comments on commit 9a452d6

Please sign in to comment.