Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a694960

Browse files
authoredAug 22, 2024
docs: add --env-file param (#42)
1 parent 4afdee8 commit a694960

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎docs/pages/build/zero-to-one/run-it.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,28 @@ bun start
9393
:::code-group
9494

9595
```bash [Linux]
96-
docker build -t app_name:latest .
96+
docker build -t <app_name>:latest .
9797
```
9898
```bash [Mac w/ Apple Silicon]
9999
docker buildx build \
100100
--platform linux/amd64,linux/arm64 \
101-
-t app_name:latest .
101+
-t <app_name>:latest .
102102
```
103103
:::
104104

105105
- Run the Docker container using the following command:
106106

107107
:::code-group
108108
```bash [File-based DB]
109-
docker run \
109+
docker run --env-file .env \
110110
-v ./db.sqlite:/app/db.sqlite \
111111
-p <HOST_PORT>:<CONTAINER_PORT> \
112-
--name=app_name -it app_name:latest
112+
--name=<app_name> -it <app_name>:latest
113113
```
114114
```bash [URI-based DB]
115-
docker run \
115+
docker run --env-file .env \
116116
-p <HOST_PORT>:<CONTAINER_PORT> \
117-
--name=app_name -it app_name:latest
117+
--name=<app_name> -it <app_name>:latest
118118
```
119119
:::
120120

0 commit comments

Comments
 (0)
Please sign in to comment.