predictor / Dockerfile
pengpeng9099's picture
Deploy World Cup 2026 Predictor (docker space)
1790bde verified
Raw History Blame Contribute Delete
714 Bytes
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"]