From 48729e78cb006df827332afa363d07f25e3fd4c9 Mon Sep 17 00:00:00 2001 From: Zi Gao Date: Sun, 8 Jun 2025 22:06:56 +1000 Subject: [PATCH] docker git and nodejs --- Dockerfile | 10 ++++++++++ build.sh | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100755 build.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..402cc44 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM debian:12-slim +LABEL maintainer="Zi Gao" +LABEL version="1.0" + +ARG DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -qy --no-install-recommends curl software-properties-common git docker.io \ + && curl -sL https://deb.nodesource.com/setup_22.x | sudo bash - \ + && apt-get install -qy --no-install-recommends nodejs + && rm -rf /var/lib/apt/lists/* /var/log/*.log /usr/share/doc/* /usr/share/info/* /usr/share/linda/* /usr/share/lintian/overrides/* /usr/share/man/* /etc/cron.daily/* /etc/cron.d/* diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..eb02dc7 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +docker build --pull --rm -t registry.mightycastle.net/runner-image:latest . +docker push registry.mightycastle.net/runner-image:latest