Skip to content
Discussion options

You must be logged in to vote

Yes, that approach is correct. To do this with Portainer, you need to build your custom image outside of Portainer first, then reference that image in your stack. Portainer does not currently support build: directives in Compose, so the workflow is:

  1. Create a Dockerfile
FROM ghcr.io/paperless-ngx/paperless-ngx:latest

RUN pip install --no-cache-dir oracledb pypaperless #This is just an example

(You may also pin a specific Paperless-NGX version instead of latest.)

  1. Build the image locally

In the same directory as the Dockerfile, run:

docker build -t myuser/paperless-custom:latest .
  1. Push the image to a registry

For example, if using Docker Hub:

docker login
docker push myuser/paperless-…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@drnicolas
Comment options

Answer selected by drnicolas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants