| # Use an official Python runtime as a parent image | |
| FROM python:3.9 | |
| # Install git | |
| RUN chmod +x update_linux.sh | |
| CMD ["./update_linux.sh"] | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements_cpu_only.txt | |
| RUN python one_click.py | |
| # Make sure the start script is executable | |
| RUN chmod +x start_linux.sh | |
| # Run the start script when the container launches | |
| CMD ["./start_linux.sh"] | |