You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,13 @@ related to this tool.
11
11
12
12
-[x] Automatically detect the runtime and framework used by your project
13
13
-[x] Use version managers like [asdf](https://github.com/asdf-vm), nvm, rbenv, and pyenv to install the correct version of the runtime
14
-
-[x] Make a best effort to detect any install, build, and run commands
14
+
-[x] Make a best effort to detect any install, build, and start commands
15
15
-[x] Generate a Dockerfile with sensible defaults that are configurable via [Docker Build Args](https://docs.docker.com/build/guide/build-args/)
16
16
-[x] Support for a wide range of the most popular languages and frameworks including Next.js, Phoenix, Spring Boot, Django, and more
17
17
-[x] Use Debian Slim as the runtime image for a smaller image size and better security, while still supporting the most common dependencies and avoiding deployment headaches caused by Alpine Linux gotchas
18
18
-[x] Includes `wget` in the runtime image for adding health checks to services, e.g. `wget -nv -t1 --spider 'http://localhost:8080/healthz' || exit 1`
19
19
-[x] Use multi-stage builds to reduce the size of the final image
20
+
-[x] Run the application as a non-root user for better security
20
21
-[x] Supports multi-platform images that run on both x86 and ARM CPU architectures
21
22
22
23
## Supported Runtimes
@@ -105,8 +106,8 @@ For example, if it finds a `package.json` file, it will assume the project is a
105
106
a `next.config.js` file is present, in which case it will assume the project is a Next.js project.
106
107
107
108
From there, it will read any `.tool-versions` or other version manager files to determine the correct version
108
-
of the runtime to install. It will then make a best effort to detect any install, build, and run commands.
109
-
For example, a `serve`, `start`, `start:prod` command in a `package.json` file will be used as the run command.
109
+
of the runtime to install. It will then make a best effort to detect any install, build, and start commands.
110
+
For example, a `serve`, `start`, `start:prod` command in a `package.json` file will be used as the start command.
110
111
111
112
Runtimes are matched against in the order they appear when you run `new-dockerfile --runtime list`.
112
113
@@ -251,15 +252,11 @@ Detected in order of precedence:
251
252
[Java](https://www.java.com/) is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.
252
253
253
254
#### Detected Files
254
-
-`build.gradle`
255
-
-`gradlew`
256
255
-`pom.{xml,atom,clj,groovy,rb,scala,yml,yaml}`
257
256
258
257
#### Version Detection
259
258
JDK version:
260
259
-`.tool-versions` - `java {VERSION}`
261
-
Gradle version:
262
-
-`.tool-versions` - `gradle {VERSION}`
263
260
Maven version:
264
261
-`.tool-versions` - `maven {VERSION}`
265
262
@@ -268,7 +265,6 @@ Maven version:
268
265
269
266
#### Build Args
270
267
-`VERSION` - The version of the JDK to install (default: `17`)
271
-
-`GRADLE_VERSION` - The version of Gradle to install (default: `8`)
272
268
-`MAVEN_VERSION` - The version of Maven to install (default: `3`)
273
269
-`JAVA_OPTS` - The Java options to pass to the JVM (default: `-Xmx512m -Xms256m`)
274
270
-`BUILD_CMD` - The command to build the project (default: best guess via source code)
@@ -279,13 +275,10 @@ Maven version:
279
275
280
276
#### Build Command
281
277
- If Maven: `mvn -DoutputFile=target/mvn-dependency-list.log -B -DskipTests clean dependency:list install`
282
-
- If Gradle: `./gradlew clean build -x check -x test`
Copy file name to clipboardExpand all lines: node/README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,13 @@ related to this tool.
13
13
14
14
-[x] Automatically detect the runtime and framework used by your project
15
15
-[x] Use version managers like [asdf](https://github.com/asdf-vm), nvm, rbenv, and pyenv to install the correct version of the runtime
16
-
-[x] Make a best effort to detect any install, build, and run commands
16
+
-[x] Make a best effort to detect any install, build, and start commands
17
17
-[x] Generate a Dockerfile with sensible defaults that are configurable via [Docker Build Args](https://docs.docker.com/build/guide/build-args/)
18
18
-[x] Support for a wide range of the most popular languages and frameworks including Next.js, Phoenix, Spring Boot, Django, and more
19
19
-[x] Use Debian Slim as the runtime image for a smaller image size and better security, while still supporting the most common dependencies and avoiding deployment headaches caused by Alpine Linux gotchas
20
20
-[x] Includes `wget` in the runtime image for adding health checks to services, e.g. `wget -nv -t1 --spider 'http://localhost:8080/healthz' || exit 1`
21
21
-[x] Use multi-stage builds to reduce the size of the final image
22
+
-[x] Run the application as a non-root user for better security
22
23
-[x] Supports multi-platform images that run on both x86 and ARM CPU architectures
23
24
24
25
## Supported Runtimes
@@ -93,8 +94,8 @@ For example, if it finds a `package.json` file, it will assume the project is a
93
94
a `next.config.js` file is present, in which case it will assume the project is a Next.js project.
94
95
95
96
From there, it will read any `.tool-versions` or other version manager files to determine the correct version
96
-
of the runtime to install. It will then make a best effort to detect any install, build, and run commands.
97
-
For example, a `serve`, `start`, `start:prod` command in a `package.json` file will be used as the run command.
97
+
of the runtime to install. It will then make a best effort to detect any install, build, and start commands.
98
+
For example, a `serve`, `start`, `start:prod` command in a `package.json` file will be used as the start command.
98
99
99
100
Runtimes are matched against in the order they appear when you run `new-dockerfile --runtime list`.
0 commit comments