fix cloudron data directory permissions
This commit is contained in:
+1
-6
@@ -6,17 +6,12 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
|
|||||||
PYTHONUNBUFFERED=1 \
|
PYTHONUNBUFFERED=1 \
|
||||||
PIP_NO_CACHE_DIR=1
|
PIP_NO_CACHE_DIR=1
|
||||||
|
|
||||||
RUN useradd -r -m -d /home/cloudron -s /usr/sbin/nologin cloudron
|
|
||||||
|
|
||||||
COPY requirements.txt /app/code/
|
COPY requirements.txt /app/code/
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . /app/code
|
COPY . /app/code
|
||||||
|
|
||||||
RUN chown -R cloudron:cloudron /app/code \
|
RUN chmod +x /app/code/start.sh
|
||||||
&& chmod +x /app/code/start.sh
|
|
||||||
|
|
||||||
USER cloudron
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,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}/uploads"
|
mkdir -p "${NOURI_DATA_DIR}/uploads"
|
||||||
|
|
||||||
if [ -z "${NOURI_SECRET_KEY:-}" ]; then
|
|
||||||
export NOURI_SECRET_KEY="cloudron-dev-secret"
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec gunicorn \
|
exec gunicorn \
|
||||||
--bind 0.0.0.0:8000 \
|
--bind 0.0.0.0:8000 \
|
||||||
--workers 2 \
|
--workers 2 \
|
||||||
|
|||||||
Reference in New Issue
Block a user