Spaces:
Runtime error
Runtime error
Create Dockefile
Browse files123456789101112131415161718192021FROM python:3.10-slim
WORKDIR /app
# Install git to clone the repoRUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Clone the Grok-Api repositoryRUN git clone https://github.com/realasfngl/Grok-Api.git .
# Install dependenciesRUN pip install --no-cache-dir -r requirements.txtRUN pip install --no-cache-dir fastapi uvicorn pydantic sse-starlette
# Copy our custom OpenAI wrapperCOPY openai_server.py /app/openai_server.py
# Hugging Face runs on port 7860EXPOSE 7860
CMD["uvicorn", "openai_server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]DockefileAdded+21