Fix for Dockerfile

- Added changing permission for entrypoint script.
- Changed moving of default characters, chats and user avatars.
This commit is contained in:
Mindus
2023-01-25 20:58:51 +01:00
parent b8d7706752
commit a8ea6d621c
2 changed files with 10 additions and 5 deletions

View File

@@ -19,8 +19,8 @@ COPY . .
# Copy default chats, characters and user avatars to <folder>.default folder
RUN \
echo "*** Copy default chats, characters and user avatars to <folder>.default folder ***" && \
mv "./public/chats" "./public/chats.default" && \
mv "./public/characters" "./public/characters.default" && \
mv "./public/chats" "./public/chats.default" && \
mv "./public/User Avatars" "./public/User Avatars.default"
# Cleanup unnecessary files
@@ -28,7 +28,9 @@ RUN \
echo "*** Cleanup ***" && \
mv "./docker/docker-entrypoint.sh" "./" && \
rm -rf "./docker" && \
rm -rf "./.git"
rm -rf "./.git" && \
echo "*** Make docker-entrypoint.sh executable ***" && \
chmod +x "./docker-entrypoint.sh"
EXPOSE 8000