Spaces:
Running
Running
File size: 714 Bytes
1790bde | 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 | FROM node:22-bookworm-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONUTF8=1 \
PYTHONIOENCODING=utf-8 \
NEXT_TELEMETRY_DISABLED=1 \
API_BACKEND=http://127.0.0.1:8000 \
PORT=7860
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-pip python3-venv build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN python3 -m venv /opt/venv \
&& /opt/venv/bin/pip install --upgrade pip \
&& /opt/venv/bin/pip install -r requirements.txt
ENV PATH="/opt/venv/bin:${PATH}"
COPY apps/web/package*.json ./apps/web/
RUN cd apps/web && npm ci
COPY . .
RUN cd apps/web && npm run build
EXPOSE 7860
CMD ["bash", "scripts/hf_start.sh"]
|