Skip to content

Creating a new container image


If you would like to help create new container images, there's a few tools you will need:

Creating a new container image

Currently, there isn't a template to start from and so you can either start with an already existing app or you can start from scratch.

  1. Create a folder in in the apps folder with the name of the container image.
  2. Add the following files to the container image folder.

Folder structure

apps/app name/
     ├── Dockerfile
     ├── goss.yaml
     ├── PLATFORM
     ├── shim
     │   └──
     └── VERSION


See Dockerfile.


The PLATFORM file is used by the to build multi-platform container images.

At a minimum, the following platforms should be supported by the container image:

  • amd64
  • arm64


The VERSION file is used by to determine the version of the app with which to build the container image.

The VERSION file may be updated manually by running the script.


The file is a standard Docker entrypoint file. This file will most likely be custom for each app. It is recommended to take a look at other container images or other versions of the Docker image for the app. A good source might be searching Docker Hub.

The only difference is the sourcing of the base image shim scripts which are added to the base image.

#shellcheck disable=SC1091
source "/shim/"
source "/shim/"

If the app has custom shim scripts, be sure to source those as well.

source "/shim/<app name>"

Ensure to append the ${EXTRA_ARGS} environmental variable to the end of the exec command so that extra args can be passed to the container by the helm chart.

exec /app/foo ${EXTRA_ARGS}


The goss.yaml file is used to perform a health check on the container image using goss.

Be sure to update the process name, port number(s) and title.

See the manual for more options.

    running: true

    listening: true

    status: 200
    - '<title>Lidarr</title>'

The script is used to get the latest version of the app. This script is custom for each app and so it will need to be developed for each app. Below is an example of one.

#!/usr/bin/env bash

# Get the version using jq from the json response.
version=$(curl -sX GET "" | jq --raw-output '.[0].version')
# Strip the v from the beginning of version if it exists.
# Remove release and dash from the beginning of version if it exists.
# Print the verion without a new line (\n) character.
printf "%s" "${version}"

shim scripts

Custom startup scripts should be added to the shim folder that needs to be run before the app is started.

Create a shim folder in the app name folder then add the shim scripts to the shim folder.

Then add following line to the Dockerfile to copy the scripts over to the image.

Then be sure to add a source line to the script.

See plex for reference.