initial commit

This commit is contained in:
Kegan Myers 2023-07-23 07:50:32 +00:00
commit fe1d0c6f3d
3 changed files with 20 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
.dockerignore
Dockerfile

7
Dockerfile Normal file
View file

@ -0,0 +1,7 @@
ARG PICTRS_VERSION
FROM asonix/pictrs:${PICTRS_VERSION}
USER root
RUN apk add --no-cache tini
USER app

11
build.sh Executable file
View file

@ -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}"