data-cleaning-openenv / Dockerfile
thorodin103's picture
Upload Dockerfile with huggingface_hub
f33204d verified
Raw
History Blame Contribute Delete
556 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir \
fastapi==0.104.1 \
uvicorn==0.24.0 \
pydantic==2.5.0 \
pandas==2.1.3 \
numpy==1.26.2 \
openai==1.3.7 \
pyyaml==6.0.1
# Copy all project files
COPY . .
# Environment variables judges will set
ENV API_BASE_URL=https://api.openai.com/v1
ENV MODEL_NAME=gpt-4o-mini
ENV HF_TOKEN=""
ENV OPENAI_API_KEY=""
# Expose port
EXPOSE 7860
# Start server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]