Copy yarn runtime, nginx temp dirs

This commit is contained in:
Codex
2025-11-12 09:07:31 -06:00
parent 51f57caa72
commit e49fd47c6d
4 changed files with 6 additions and 1 deletions

View File

@@ -5,7 +5,7 @@
"description": "Next-gen knowledge base that blends docs, whiteboards, and databases for self-hosted teams.",
"website": "https://affine.pro",
"contactEmail": "support@affine.pro",
"version": "0.1.1",
"version": "0.1.2",
"changelog": "Initial Cloudron packaging",
"manifestVersion": 2,
"minBoxVersion": "7.0.0",

View File

@@ -18,6 +18,7 @@ RUN mkdir -p "$APP_CODE_DIR" "$APP_DATA_DIR" "$APP_RUNTIME_DIR" "$APP_TMP_DIR" &
# bring in the upstream runtime and packaged server artifacts
COPY --from=upstream /usr/local /usr/local
COPY --from=upstream /opt /opt
COPY --from=upstream /app "$APP_BUILD_DIR"
# configuration, launch scripts, and defaults

View File

@@ -14,6 +14,9 @@ http {
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 4096;
client_body_temp_path /run/nginx/body;
proxy_temp_path /run/nginx/proxy;
fastcgi_temp_path /run/nginx/fastcgi;
log_format cloudron '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '

View File

@@ -25,6 +25,7 @@ require_env() {
prepare_data_dirs() {
log "Preparing persistent directories"
mkdir -p "$APP_DATA_DIR/config" "$APP_DATA_DIR/storage" "$APP_DATA_DIR/logs" "$APP_RUNTIME_DIR" "$APP_HOME_DIR" "$AFFINE_HOME"
mkdir -p /run/nginx/body /run/nginx/proxy /run/nginx/fastcgi
if [ ! -f "$APP_DATA_DIR/config/config.json" ]; then
log "Seeding default configuration"