game / Dockerfile
habulaj's picture
Update Dockerfile
93c51d4 verified
# Dockerfile para Windows RDP com Emulador de Jogos
# Adaptado para HuggingFace Spaces - roda Windows diretamente no container
FROM dockurr/windows:latest
# Instalar Python e dependências para FastAPI
USER root
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
wget \
curl \
unzip \
supervisor \
netcat-openbsd \
&& rm -rf /var/lib/apt/lists/*
# Criar diretório para FastAPI
WORKDIR /app
# Copiar e instalar dependências Python
COPY requirements.txt /app/requirements.txt
RUN pip3 install --no-cache-dir --upgrade --break-system-packages --ignore-installed -r requirements.txt
# Copiar aplicação FastAPI
COPY app.py /app/app.py
# Não instalar emuladores - apenas Windows XP
# COPY install-scripts /oem
# Copiar script wrapper que inicia FastAPI e depois o Windows
COPY start-wrapper.sh /start-wrapper.sh
RUN chmod +x /start-wrapper.sh
# Voltar para usuário padrão
USER user
# Expor portas
EXPOSE 7860 8006 3389
# Usar wrapper que inicia FastAPI e depois Windows
ENTRYPOINT ["/start-wrapper.sh"]