Spaces:
Build error

WordGame / Dockerfile
0Mart00
Verbumix rebrand: emojis removed, multi-jurisdictional legal docs, cookie consent, footer links
9d4e305
Raw History Blame Contribute Delete
1.07 kB
# Univerzalis Docker Image – WordGame (public) es Lingo (private) Space-ekhez.
# Az APP_MODE env valtozo donti el, hogy public vagy private app indul.
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose port (HF Spaces alapertelmezett: 7860)
EXPOSE 7860
# Set runtime environment variables
ENV PYTHONPATH=/app
ENV HOST=0.0.0.0
ENV PORT=7860
# Inditas: az APP_MODE valtozo alapjan (public v private)
CMD if [ "${APP_MODE:-public}" = "public" ]; then \
echo "PUBLIC (Verbumix) modban inditas..."; \
exec uvicorn src.wordgame.main_public:app --host 0.0.0.0 --port 7860; \
else \
echo "PRIVATE (Lingo) modban inditas..."; \
exec uvicorn src.wordgame.main_private:app --host 0.0.0.0 --port 7860; \
fi