aj-studioz-api / Dockerfile
AJ STUDIOZ
Updated to HF Inference API with DeepSeek-R1 - LIFETIME FREE with unlimited usage
896d5c7
raw
history blame contribute delete
541 Bytes
FROM python:3.11-slim
# Set environment variables
ENV HOME=/home/user
ENV PYTHONUNBUFFERED=1
# Create user home directory
RUN mkdir -p /home/user && chmod 777 /home/user
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY app.py .
COPY Modelfile-AJ-Mini .
# Expose port for Hugging Face Spaces
EXPOSE 7860
# Start application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]