diff --git a/Dockerfile.release b/Dockerfile.release new file mode 100644 index 000000000..5273a918c --- /dev/null +++ b/Dockerfile.release @@ -0,0 +1,13 @@ +# This Dockerfile is used to build container image for production workloads. +# It relies on the binaries produced by `ignite_release` and `ignite_release_extract_binaries` make targets. +FROM alpine:3.19 +ARG TARGETARCH + +# Use `1025` G/UID so users can switch between this and `heighliner` image without a need to chown the files. +RUN addgroup --gid 1025 -S pocket && adduser --uid 1025 -S pocket -G pocket + +COPY --chown=pocket:pocket release_binaries/poktroll_linux_$TARGETARCH /bin/poktrolld + +USER pocket + +ENTRYPOINT ["poktrolld"]