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