From fe1d0c6f3dfa3f05bb67ff3f19d2c4d85acbb8ca Mon Sep 17 00:00:00 2001 From: Kegan Myers Date: Sun, 23 Jul 2023 07:50:32 +0000 Subject: [PATCH] initial commit --- .dockerignore | 2 ++ Dockerfile | 7 +++++++ build.sh | 11 +++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100755 build.sh 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}"