Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files31 unmodified lines3233343536373839404142434431 unmodified linesCOPY --chown=appuser:appuser requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy and build the Rust module using maturin (as root)USER rootCOPY --chown=appuser:appuser rust_highlight /app/rust_highlightWORKDIR /app/rust_highlightENV PATH="/root/.cargo/bin:${PATH}"RUN maturin develop --release# 6. Copy all application filesCOPY --chown=appuser:appuser app.py image_fetcher.py video.py video2.py ./31 unmodified lines3233343536373839404142434445464748495031 unmodified linesCOPY --chown=appuser:appuser requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# --- RUST BUILD START ---USER rootCOPY --chown=appuser:appuser rust_highlight /app/rust_highlightWORKDIR /app/rust_highlightENV PATH="/root/.cargo/bin:${PATH}"RUN maturin build --release --manifest-path Cargo.tomlRUN pip install target/wheels/*.whl# Go back to app setupUSER appuserWORKDIR /app# --- RUST BUILD END ---# 6. Copy all application filesCOPY --chown=appuser:appuser app.py image_fetcher.py video.py video2.py ./
Dockerfile+8-2