Skip to content

Make your own Docker image (not recommended)

Arnaud BEUX edited this page Mar 13, 2023 · 1 revision

In most case, you will run the Docker server using the provided image (nytuo/cosmic_comics), which is recommended.

But if you want to make your own custom image, here is how:

ARM extra-step

If you are on an ARM(64) device, you may need to run the following command first, it will let you run amd64 containers on ARM

docker run --privileged --rm tonistiigi/binfmt --install amd64
  1. Run the Docker build command on the same folder than the source code, and make sure that the Dockerfile file is in it (no need to run npm/yarn command since this is done in the container)

Note: the --platform amd64 is only needed on device that are NOT amd64 devices.

docker build --platform amd64 -t cosmic_comics-custom .
  1. Modify the docker-compose.yml to use your image by changing the image's name to the one you used at build time (cosmic_comics-custom in this case).

  2. Run docker-compose up -d when you are done editing the file and try to reach the server.

Clone this wiki locally