Spaces:
Paused
Paused
| FROM ubuntu:20.04 | |
| # Avoid interactive prompts during package installation | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install required packages and dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| wget \ | |
| curl \ | |
| sudo \ | |
| dpkg \ | |
| xfce4 \ | |
| desktop-base \ | |
| xfce4-terminal \ | |
| xscreensaver \ | |
| qbittorrent \ | |
| telegram-desktop \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy the Python script and entrypoint script into the container | |
| COPY setup.py /setup.py | |
| COPY entrypoint.sh /entrypoint.sh | |
| # Make the entrypoint script executable | |
| RUN chmod +x /entrypoint.sh | |
| # (Optional) Expose a port if needed (e.g., for remote desktop access) | |
| EXPOSE 3389 | |
| # Run the entrypoint script when the container starts | |
| ENTRYPOINT ["/entrypoint.sh"] | |