Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dockerfile package name in docs #1824

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/frameworks/astro.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ This will install `@astrojs/node` and make the appropriate changes to your `astr

## Generating your Astro Dockerfile

As discussed earlier, running `fly launch` will generate a Dockerfile for you if one does not already exist. Separately, you can also generate your Dockerfile using [Dockerfile generator](https://www.npmjs.com/package/@flydotio/dockerfile). Once installed, it can be run using `npx dockerfile` for Node applications or `bunx dockerfile` for Bun applications. You'll see it referenced throughout this article for various use cases.
As discussed earlier, running `fly launch` will generate a Dockerfile for you if one does not already exist. Separately, you can also generate your Dockerfile using [Dockerfile generator](https://www.npmjs.com/package/@flydotio/dockerfile). Once installed, it can be run using `npx @flydotio/dockerfile` for Node applications or `bunx @flydotio/dockerfile` for Bun applications. You'll see it referenced throughout this article for various use cases.
10 changes: 5 additions & 5 deletions js/frameworks/nextjs.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ CMD [ "node", "server.js" ]

## Generating your Next.js Dockerfile

While you're welcome to write your own Dockerfile, the easiest way to get started with this is to use the [Dockerfile generator](https://www.npmjs.com/package/@flydotio/dockerfile). Once installed, it can be run using `npx dockerfile` for Node applications or `bunx dockerfile` for Bun applications. You'll see it referenced throughout this article for various use cases.
While you're welcome to write your own Dockerfile, the easiest way to get started with this is to use the [Dockerfile generator](https://www.npmjs.com/package/@flydotio/dockerfile). Once installed, it can be run using `npx @flydotio/dockerfile` for Node applications or `bunx @flydotio/dockerfile` for Bun applications. You'll see it referenced throughout this article for various use cases.

## Connecting to databases

Expand Down Expand Up @@ -253,7 +253,7 @@ for you.
Next, you need to modify your Dockerfile to mount a secret. The easiest way to do this is using the [Dockerfile generator](https://www.npmjs.com/package/@flydotio/dockerfile), like so:

```cmd
npx dockerfile --mount-secret=DATABASE_URL
npx @flydotio/dockerfile --mount-secret=DATABASE_URL
```

It is possible to mount multiple secrets, and you can read more about [mounting secrets](/docs/apps/build-secrets/#mounting-secrets) for further details.
Expand Down Expand Up @@ -281,7 +281,7 @@ You can let the [Dockerfile generator](https://www.npmjs.com/package/@flydotio/d
changes for you:

```
npx dockerfile --build=defer
npx @flydotio/dockerfile --build=defer
```

Downsides of this approach:
Expand Down Expand Up @@ -310,7 +310,7 @@ ARG NEXT_PUBLIC_OTHER="Other value"
Alternatively, if you'd prefer to use the Dockerfile generator, you can do so by running the following:

```cmd
npx dockerfile "--arg-build=NEXT_PUBLIC_EXAMPLE:value" \
npx @flydotio/dockerfile "--arg-build=NEXT_PUBLIC_EXAMPLE:value" \
"--arg-build=NEXT_PUBLIC_OTHER=Other value"
```

Expand All @@ -328,7 +328,7 @@ https://nextjs.org/telemetry
The following command can be used to modify your Dockerfile to disable telemetry:

```cmd
npx dockerfile --env-base=NEXT_TELEMETRY_DISABLED:1
npx @flydotio/dockerfile --env-base=NEXT_TELEMETRY_DISABLED:1
```


Expand Down
2 changes: 1 addition & 1 deletion js/the-basics/database.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,5 @@ For databases other than Sqlite3, this is best done as a one-off command run in
For sqlite3, a different approach is required as the migration will need to be run on each machine that has a volume mounted. This can be accomplished by creating a small script that first runs the migrate command then run the web server start script. You can place this script in your source tree, and then use the following command to replace the CMD in the Dockerfile:

```cmd
npx dockerfile --cmd=file
npx @flydotio/dockerfile --cmd=file
```
10 changes: 5 additions & 5 deletions js/the-basics/dependencies.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ the `package.json`. An alternative when this isn't feasible or desired is to re
dockerfile to include _all_ dependencies at deployment:

```cmd
npx dockerfile --dev
npx @flydotio/dockerfile --dev
```

## Legacy peer dependencies
Expand All @@ -50,7 +50,7 @@ necessary to indicate that these dependencies are _legacy_. The way to do this
based on the package manager, and dockerfile-node can take care of this for you:

```cmd
npx dockerfile --legacy-peer-deps
npx @flydotio/dockerfile --legacy-peer-deps
```

## Native modules
Expand All @@ -59,9 +59,9 @@ Some npm modules are _native_ modules which may require additional libraries to
installed, either at build time, or at deploy time, or both.

```
npx dockerfile --add-base=libxml2
npx dockerfile --add-build=babel
npx dockerfile --add-deploy=fontconfig
npx @flydotio/dockerfile --add-base=libxml2
npx @flydotio/dockerfile --add-build=babel
npx @flydotio/dockerfile --add-deploy=fontconfig
```

If you find yourself needing to do this, and your need is a consequence of using a
Expand Down
2 changes: 1 addition & 1 deletion js/the-basics/dockerfiles.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ able to use one or more of the many [options](https://github.com/fly-apps/docker
to make changes. For example:

```cmd
npx dockerfile --add=dnsutils
npx @flydotio/dockerfile --add=dnsutils
```