Explore building applications with Nixpacks for flexible and reproducible builds.
nixpacks.toml
file to your repository, you can customize the final Docker image generated by Nixpacks. This configuration file allows you to specify additional providers, install extra packages, customize your build commands, override the start command, and even define new build phases, giving you greater control over the build process and the resulting image.
For more information about how to configure the nixpacks.toml
file, refer to Nixpack’s documentation.
PNPM_HOME
:
Language | Directory |
---|---|
Node.js | /nix/var/nix/profiles/default/bin/node |
Ruby | /nix/var/nix/profiles/default/bin/ruby |
Python | /nix/var/nix/profiles/default/bin/python |
Java | /nix/var/nix/profiles/default/bin/java |
Scala | Scala doesn’t have a specific default binary path like some other compiled languages. When you compile a Scala program, it generates bytecode that runs on the Java Virtual Machine (JVM). The compiled Scala classes are typically stored in a directory structure that mirrors the package structure of your code. This is similar to how Java classes are organized. By default, when you compile a Scala source file, the compiled .class files will be placed in the same directory as the source code (within a subdirectory structure based on the package declarations). If needed, you can install Scala’s runtime tools using a Dockerfile instead of using a Nixpack. |
PHP | /nix/var/nix/profiles/default/bin/php |
Go | Go doesn’t have a specific default binary path like some other compiled languages. When you compile a Go program, the resulting binary executable is typically placed in the same directory as your source code by default. If needed, you can install Go’s runtime tools using a Dockerfile instead of using a Nixpack. |
NIXPACKS_JDK_VERSION
environment variable and make sure the variable is available during the build process.
If you’re using Gradle, to specify the version, set the NIXPACKS_GRADLE_VERSION
environment variable and make sure the variable is available during the build process.
NIXPACKS_NODE_VERSION
environment variable and make sure the variable is available during the build process.
python-3.10.6
3.10.6
NIXPACKS_PYTHON_VERSION
environment variable and make sure the variable is available during the build process.