Update Dockerfile
Browse files- Dockerfile +3 -6
Dockerfile
CHANGED
@@ -35,19 +35,19 @@ ENV github_secret ""
|
|
35 |
ENV github_project ""
|
36 |
|
37 |
# Install app dependencies
|
38 |
-
# COPY package*.json post-install.js ./
|
39 |
RUN git clone https://github.com/SillyTavern/SillyTavern.git --branch 1.11.7 .
|
40 |
RUN \
|
41 |
echo "*** Install npm packages ***" && \
|
42 |
npm install && npm cache clean --force
|
43 |
|
44 |
# Bundle app source
|
45 |
-
# COPY . ./
|
46 |
-
|
47 |
ADD auto.sh auto.sh
|
48 |
RUN curl -JLO https://github.com/bincooo/SillyTavern-Docker/releases/download/v1.0.0/git-batch
|
49 |
RUN chmod +x auto.sh && chmod +x git-batch
|
50 |
|
|
|
|
|
|
|
51 |
|
52 |
# Copy default chats, characters and user avatars to <folder>.default folder
|
53 |
RUN \
|
@@ -64,8 +64,6 @@ RUN \
|
|
64 |
ln -s "../config/settings.json" "public/settings.json" || true && \
|
65 |
mkdir "config" || true && \
|
66 |
mkdir -p "public/user" || true
|
67 |
-
#\
|
68 |
-
#for R in $RESOURCES; do mkdir "config/$R"; done || true
|
69 |
|
70 |
ADD ["user-default.png", "config/User Avatars/user-default.png"]
|
71 |
ADD ["OpenAI Settings", "config/OpenAI Settings"]
|
@@ -78,7 +76,6 @@ ADD settings.json config/settings.json
|
|
78 |
# 导入角色卡
|
79 |
ADD characters config/characters
|
80 |
|
81 |
-
|
82 |
# Cleanup unnecessary files
|
83 |
RUN \
|
84 |
echo "*** Cleanup ***" && \
|
|
|
35 |
ENV github_project ""
|
36 |
|
37 |
# Install app dependencies
|
|
|
38 |
RUN git clone https://github.com/SillyTavern/SillyTavern.git --branch 1.11.7 .
|
39 |
RUN \
|
40 |
echo "*** Install npm packages ***" && \
|
41 |
npm install && npm cache clean --force
|
42 |
|
43 |
# Bundle app source
|
|
|
|
|
44 |
ADD auto.sh auto.sh
|
45 |
RUN curl -JLO https://github.com/bincooo/SillyTavern-Docker/releases/download/v1.0.0/git-batch
|
46 |
RUN chmod +x auto.sh && chmod +x git-batch
|
47 |
|
48 |
+
# Create necessary directories for environment variables
|
49 |
+
RUN mkdir -p /home/node/app/config
|
50 |
+
RUN mkdir -p /home/node/app/public
|
51 |
|
52 |
# Copy default chats, characters and user avatars to <folder>.default folder
|
53 |
RUN \
|
|
|
64 |
ln -s "../config/settings.json" "public/settings.json" || true && \
|
65 |
mkdir "config" || true && \
|
66 |
mkdir -p "public/user" || true
|
|
|
|
|
67 |
|
68 |
ADD ["user-default.png", "config/User Avatars/user-default.png"]
|
69 |
ADD ["OpenAI Settings", "config/OpenAI Settings"]
|
|
|
76 |
# 导入角色卡
|
77 |
ADD characters config/characters
|
78 |
|
|
|
79 |
# Cleanup unnecessary files
|
80 |
RUN \
|
81 |
echo "*** Cleanup ***" && \
|