FROM docker.1ms.run/vllm/vllm-openai-rocm:latest

WORKDIR /workspace

COPY requirements.txt /workspace/requirements.txt
RUN pip install --no-cache-dir --retries 10 --timeout 180 -r /workspace/requirements.txt

COPY app /workspace/app

ENV PYTHONUNBUFFERED=1

EXPOSE 8001

CMD ["python", "-m", "app.start_openai"]
