Skip to content

Commit 9a28dc6

Browse files
committed
still more minor reformatting
1 parent 8b9e2e2 commit 9a28dc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/server-guide/linux-setup/build-docker-image.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ This builder image is based off of Ubuntu 22.04 and installs the necessary requi
129129
`docker buildx inspect --bootstrap`
130130
3. For some reason, buildx can occasionally have a bug where it won't build emulated architectures, but we can get around that with the command:\
131131
`docker run --rm --privileged multiarch/qemu-user-static --reset -p yes`
132+
* Remember this command: if you have a build error in the future, try running this command and then attempt the build again. I have had it fix issues on more than one occasion.
132133
4. Now we will create the multi-architecture builder for both linux/amd64 and linux/arm64 architectures. This will create the builder image for use on PCs with AMD/Intel CPU and also for RaspberryPi/equivalent running x64 Linux:\
133134
`docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile.builder -t username/multiarch-builder:latest --push .`
134135

@@ -141,7 +142,7 @@ Everything above this header need only be done once. This step is where we actua
141142
`FROM username/multiarch-builder:latest as builder`
142143
2. Now we'll use our multiarch-builder to create the server docker container:\
143144
`docker buildx build --platform linux/amd64,linux/arm64 -f Dockerfile -t username/st-reborn-server:latest --push .`
144-
* If you want to build a specific repository/branch, you can pass `REPO` or `BRANCH` as a `--build-arg`, like so:
145+
* If you want to build a specific repository/branch, you can pass `REPO` or `BRANCH` as a `--build-arg`, like so:\
145146
`docker buildx build --build-arg BRANCH=master --build-arg REPO=http://github.com/tiltedphoques/TiltedEvolution.git --platform linux/amd64,linux/arm64 -f Dockerfile -t username/st-reborn-server:latest --push .`
146147

147148
This will create a manifest with two containers, one for linux/amd64 (Intel/AMD PCs) and one for linux/arm64 (RaspberryPi/equivalent), and push them to your docker hub. If you want to build only the server for your architecture, you can omit the other one. Alternatively, you could simply `docker build .` to build the server without buildx, but it will only build for your current architecture. As of writing, `docker build .` will only work with linux/amd64 and linux/aarch64 architectures.

0 commit comments

Comments
 (0)