tictoctoe-ui / Dockerfile
ravithejads's picture
Upload 6 files
faf907f verified
raw
history blame contribute delete
662 Bytes
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"]