Spaces:
Sleeping
Sleeping
Download Dockerfile from rmayormartins/java-air-combat: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/rmayormartins/java-air-combat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rmayormartins/java-air-combat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rmayormartins/java-air-combat/resolve/main/Dockerfile
578 Bytes
| FROM python:3.9 | |
| # Instalar Java | |
| RUN apt-get update && \ | |
| apt-get install -y default-jdk && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Verificar instalação do Java | |
| RUN java -version && javac -version | |
| # Configurar diretório de trabalho | |
| WORKDIR /code | |
| # Copiar requirements e instalar dependências Python | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copiar código da aplicação | |
| COPY . /code | |
| # Expor porta | |
| EXPOSE 7860 | |
| # Comando para executar a aplicação | |
| CMD ["python", "app.py"] |