Spaces:
Paused
Paused
File size: 462 Bytes
0b9dc2e 69e26e5 0b9dc2e | 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 | FROM python:3.11-slim
RUN apt-get update && apt-get install -y \
curl git redis-server \
&& rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g pnpm
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir -e ".[full]"
WORKDIR /app/examples/web_ui
RUN pnpm install
RUN pnpm build
WORKDIR /app
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["/app/start.sh"]
|