mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix(docker): create /opt/models unconditionally so chown works in CI
When SKIP_MODEL_DOWNLOADS=true the download script never runs, so /opt/models was never created and the subsequent chown -R ... /opt/models failed with exit code 1. mkdir -p it alongside the other required dirs.
This commit is contained in:
+3
-2
@@ -252,8 +252,9 @@ COPY packages/ai/python ./packages/ai/python
|
||||
# Copy built frontend from builder stage
|
||||
COPY --from=builder /app/apps/web/dist ./apps/web/dist
|
||||
|
||||
# Create required directories
|
||||
RUN mkdir -p /data /data/files /tmp/workspace
|
||||
# Create required directories (including /opt/models so chown works even when
|
||||
# SKIP_MODEL_DOWNLOADS=true skips the download script that would create it)
|
||||
RUN mkdir -p /data /data/files /tmp/workspace /opt/models
|
||||
|
||||
# Symlink facexlib models for codeformer-pip (expects gfpgan/weights/ relative to CWD)
|
||||
RUN mkdir -p /app/gfpgan/weights/CodeFormer && \
|
||||
|
||||
Reference in New Issue
Block a user