Images, Build a new image lets me test a Dockerfile without a shell on the host. There is one limit to know first.
FROM alpine:3.20
RUN apk add --no-cache wget
RUN wget -O /opt/config.json https://example.com/config.json
Pick Web editor, Upload or a URL as the build method, give the image a name, then press Build the image. The Output tab keeps the build log. When the host has several nodes, choose the node that gets the image.
The docs say ADD and COPY cannot use files on the host, so fetch things with wget from a URL as above. Files you upload through the Select files button are included in the build.
Further reading: Portainer docs: Build a new image