mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
[Docker] Fix
- changed seperate vol. for characters, chats, ... to single config vol. - settings.json is now persistent Fixes #1
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -20,7 +20,17 @@ RUN \
|
||||
echo "*** Copy default chats, characters and user avatars to <folder>.default folder ***" && \
|
||||
mv "./public/characters" "./public/characters.default" && \
|
||||
mv "./public/chats" "./public/chats.default" && \
|
||||
mv "./public/User Avatars" "./public/User Avatars.default"
|
||||
mv "./public/User Avatars" "./public/User Avatars.default" && \
|
||||
mv "./public/settings.json" "./public/settings.json.default" && \
|
||||
echo "*** Create empty folders ***" && \
|
||||
mkdir "./public/characters" && \
|
||||
mkdir "./public/chats" && \
|
||||
mkdir "./public/User Avatars" && \
|
||||
echo "*** Create symbolic links to config directory ***" && \
|
||||
ln -s "./config/characters" "./public/characters" && \
|
||||
ln -s "./config/chats" "./public/chats" && \
|
||||
ln -s "./config/User Avatars" "./public/User Avatars" && \
|
||||
ln -s "./config/settings.json" "./public/settings.json"
|
||||
|
||||
# Cleanup unnecessary files
|
||||
RUN \
|
||||
|
Reference in New Issue
Block a user