Fix data directory permissions
Browse files- Dockerfile +3 -2
- config/config.yaml +15 -0
Dockerfile
CHANGED
|
@@ -19,11 +19,12 @@ RUN \
|
|
| 19 |
echo "*** Install npm packages ***" && \
|
| 20 |
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
|
| 21 |
|
| 22 |
-
# Create config
|
| 23 |
RUN \
|
| 24 |
rm -f "config.yaml" || true && \
|
| 25 |
ln -s "./config/config.yaml" "config.yaml" || true && \
|
| 26 |
-
mkdir "config"
|
|
|
|
| 27 |
|
| 28 |
# Pre-compile public libraries
|
| 29 |
RUN \
|
|
|
|
| 19 |
echo "*** Install npm packages ***" && \
|
| 20 |
npm ci --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force
|
| 21 |
|
| 22 |
+
# Create config and data directories with proper permissions
|
| 23 |
RUN \
|
| 24 |
rm -f "config.yaml" || true && \
|
| 25 |
ln -s "./config/config.yaml" "config.yaml" || true && \
|
| 26 |
+
mkdir -p "config" "data" && \
|
| 27 |
+
chmod -R 777 "data" "config"
|
| 28 |
|
| 29 |
# Pre-compile public libraries
|
| 30 |
RUN \
|
config/config.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SillyTavern Config for HuggingFace Spaces
|
| 2 |
+
dataRoot: ./data
|
| 3 |
+
listen: true
|
| 4 |
+
listenAddress:
|
| 5 |
+
ipv4: 0.0.0.0
|
| 6 |
+
ipv6: '[::]'
|
| 7 |
+
protocol:
|
| 8 |
+
ipv4: true
|
| 9 |
+
ipv6: false
|
| 10 |
+
port: 8000
|
| 11 |
+
whitelistMode: false
|
| 12 |
+
basicAuthMode: false
|
| 13 |
+
securityOverride: true
|
| 14 |
+
disableCsrfProtection: true
|
| 15 |
+
skipContentCheck: true
|