Spaces:
Runtime error
Runtime error
File size: 1,178 Bytes
5d596d9 64cdec8 c7c25c5 64cdec8 65f7af4 64cdec8 aabc0fe 64cdec8 3460666 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
FROM nvidia/cuda:12.1.1-runtime-ubuntu22.04
ENV SHELL=/bin/bash
# System deps
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 python3-pip python3-venv git curl wget build-essential pkg-config ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# --- Install uv (Python package/dependency manager) ---
RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
&& ln -s $HOME/.cargo/bin/uv /usr/local/bin/uv
# --- Install Rust + Cargo ---
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& rustup default stable
# --- Install pnpm (Node package manager) ---
ENV PNPM_HOME=/usr/local/pnpm
ENV PATH=$PNPM_HOME:$PATH
RUN curl -fsSL https://get.pnpm.io/install.sh | sh - \
&& ln -s $PNPM_HOME/pnpm /usr/local/bin/pnpm
# --- Python setup ---
RUN python3 -m pip install --upgrade pip
# Example: clone your external repo early
RUN git clone https://github.com/CarolinePascal/unmute.git /app/unmute
# Copy rest of your app
COPY . /app
# Ports
EXPOSE 7860
ENV PORT=7860
CMD ["/app/app.sh"] |