commit fe1d0c6f3dfa3f05bb67ff3f19d2c4d85acbb8ca Author: Kegan Myers Date: Sun Jul 23 07:50:32 2023 +0000 initial commit diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6e19512 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.dockerignore +Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ba62332 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +ARG PICTRS_VERSION +FROM asonix/pictrs:${PICTRS_VERSION} + +USER root +RUN apk add --no-cache tini + +USER app diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..addb95c --- /dev/null +++ b/build.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -Eeuxo pipefail + +PICTRS_VERSION="${1:-0.4.0}" +PICTRS_IMAGE="registry.nrd.li/nrdli/pictrs:${PICTRS_VERSION}" + +docker build \ + --build-arg "PICTRS_VERSION=${PICTRS_VERSION}" \ + -t "${PICTRS_IMAGE}" \ + . +docker push "${PICTRS_IMAGE}"