File size: 539 Bytes
7623013
191ab7c
ae37163
dfb2be2
191ab7c
6f4fdbf
26de7b6
7623013
 
191ab7c
6f4fdbf
ae37163
22cd090
191ab7c
6f4fdbf
ae37163
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ghcr.io/meta-pytorch/openenv-base:latest

WORKDIR /app
COPY . /app

RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

RUN curl -LsSf https://astral.sh/uv/install.sh | sh && \
    /root/.local/bin/uv pip install --system fastapi uvicorn httpx openai openenv

# This tells Python to treat /app as the home base for all imports
ENV PYTHONPATH="/app"
EXPOSE 7860

# We run from the root, targeting the folder specifically
CMD ["python3", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]