fix cloudron data permissions on startup

This commit is contained in:
2026-04-12 16:43:15 +02:00
parent 96ab52e1ba
commit 732e7918af
2 changed files with 2 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
sqlite3 \ sqlite3 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN useradd -r -m -d /home/cloudron cloudron RUN groupadd --gid 1000 cloudron \
&& useradd --uid 1000 --gid 1000 --create-home --home-dir /home/cloudron cloudron
COPY requirements.txt /app/code/ COPY requirements.txt /app/code/
RUN pip install --no-cache-dir -r requirements.txt gunicorn RUN pip install --no-cache-dir -r requirements.txt gunicorn
-1
View File
@@ -3,7 +3,6 @@ set -eu
export NOURI_DATA_DIR="${NOURI_DATA_DIR:-/app/data}" export NOURI_DATA_DIR="${NOURI_DATA_DIR:-/app/data}"
mkdir -p "${NOURI_DATA_DIR}" mkdir -p "${NOURI_DATA_DIR}"
touch "${NOURI_DATA_DIR}/nouri.sqlite3"
mkdir -p "${NOURI_DATA_DIR}/uploads" mkdir -p "${NOURI_DATA_DIR}/uploads"
exec gunicorn \ exec gunicorn \