Spaces:
Sleeping
Sleeping
File size: 662 Bytes
faf907f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all application files
COPY . .
# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860
# Create startup script
RUN echo '#!/bin/bash\n\
echo "Starting Tic-Tac-Toe Web UI on port 7860..."\n\
echo "Game interface available at the root URL"\n\
echo "Features: Room management, AI gameplay, real-time chat"\n\
python app.py' > start.sh && chmod +x start.sh
# Set required environment variable for Mistral API
ENV MISTRAL_API_KEY=""
CMD ["./start.sh"] |