Morph allows you to customize the runtime environment on Morph Cloud by editing theDocumentation Index
Fetch the complete documentation index at: https://docs.morph-data.io/llms.txt
Use this file to discover all available pages before exploring further.
Dockerfile in your project.
Default Dockerfile Structure
TheDockerfile generated by the morph new command is structured as follows:
Adding Packages
You can add any OS-level packages you need by updating your project’s Dockerfile. Morph Cloud base images are built on Debian Linux. Package installation can be done using the apt-get command. For example, to install the curl package using apt-get:To reduce the final image size, we recommend running
apt-get clean after installing packages to remove
unnecessary files.Changing the Python Version
When you create a project with the morph new command, you can choose from Python 3.9, 3.10, 3.11, or 3.12. The version you select is reflected in the automatically generated configuration files so that the deployed application uses the same Python version.The chosen Python version is also reflected in the project’s configuration
files (like the
Dockerfile), which you can further customize as needed.