Spaces:
Sleeping
Sleeping
FROM python:3.11-slim | |
# Instalar dependências do sistema | |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
# Diretório de trabalho | |
WORKDIR /app | |
# Clonar e instalar o beautify-http-server | |
RUN git clone https://github.com/lorenzodifuccia/http.server.git \ | |
&& cd http.server \ | |
&& pip install . | |
# Copiar o script de inicialização | |
COPY app.sh . | |
# Expor porta padrão do Spaces | |
EXPOSE 7860 | |
# Comando de execução | |
CMD ["bash", "app.sh"] | |