2023-03-12 20:47:17 +00:00
|
|
|
# Building Docker images
|
2023-02-05 20:08:12 +00:00
|
|
|
|
|
|
|
To build docker images of the backend or frontend use the following commands.
|
2023-07-06 00:45:32 +00:00
|
|
|
Make sure that you have installed the [Docker BuildKit Plugin][buildkit] and
|
2023-02-05 20:08:12 +00:00
|
|
|
execute the commands from the root level of the project.
|
|
|
|
Otherwise, the build process may fail.
|
|
|
|
|
2023-07-08 13:39:12 +00:00
|
|
|
<!-- markdownlint-disable proper-names -->
|
2023-02-05 20:08:12 +00:00
|
|
|
```sh
|
2023-07-08 13:39:12 +00:00
|
|
|
docker buildx build -f backend/docker/Dockerfile -t hedgedoc-backend .
|
2023-02-05 20:08:12 +00:00
|
|
|
```
|
2023-07-08 13:39:12 +00:00
|
|
|
<!-- markdownlint-enable proper-names -->
|
2023-02-05 20:08:12 +00:00
|
|
|
|
|
|
|
or
|
|
|
|
|
2023-07-08 13:39:12 +00:00
|
|
|
<!-- markdownlint-disable proper-names -->
|
2023-02-05 20:08:12 +00:00
|
|
|
```sh
|
2023-07-08 13:39:12 +00:00
|
|
|
docker buildx build -f frontend/docker/Dockerfile -t hedgedoc-frontend .
|
2023-02-05 20:08:12 +00:00
|
|
|
```
|
2023-07-08 13:39:12 +00:00
|
|
|
<!-- markdownlint-enable proper-names -->
|
2023-02-05 20:08:12 +00:00
|
|
|
|
2023-07-06 00:45:32 +00:00
|
|
|
[buildkit]: https://docs.docker.com/build/install-buildx/
|