docker git and nodejs

This commit is contained in:
Zi Gao 2025-06-08 22:06:56 +10:00
parent 599ef6fff3
commit 48729e78cb
2 changed files with 14 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM debian:12-slim
LABEL maintainer="Zi Gao<zi@mightycastle.net>"
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/*

4
build.sh Executable file
View file

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