Spaces:
Sleeping
Sleeping
| FROM ubuntu:24.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| bash \ | |
| curl \ | |
| wget \ | |
| vim \ | |
| nano \ | |
| git \ | |
| htop \ | |
| net-tools \ | |
| iputils-ping \ | |
| procps \ | |
| coreutils \ | |
| findutils \ | |
| grep \ | |
| sed \ | |
| gawk \ | |
| tree \ | |
| zip \ | |
| unzip \ | |
| screen \ | |
| cron \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install fastfetch | |
| RUN wget -q https://github.com/fastfetch-cli/fastfetch/releases/latest/download/fastfetch-linux-amd64.deb \ | |
| && dpkg -i fastfetch-linux-amd64.deb \ | |
| && rm fastfetch-linux-amd64.deb | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip3 install --break-system-packages -r requirements.txt | |
| COPY app.py . | |
| COPY startup.sh . | |
| COPY static/ ./static/ | |
| # Create persistent storage directory | |
| RUN mkdir -p /persistent && chmod 777 /persistent | |
| RUN chmod -R 755 /app | |
| RUN chmod +x /app/startup.sh | |
| EXPOSE 7860 | |
| CMD ["/app/startup.sh"] |