From 37520e62f30b1c22a97d93a41dcebe8763e8afb1 Mon Sep 17 00:00:00 2001 From: ScuroNeko Date: Thu, 23 Apr 2026 16:47:52 +0300 Subject: [PATCH] python --- Makefile | 9 +++++++-- docker.Dockerfile | 9 +++------ python-alpine.Dockerfile | 2 ++ python-slim.Dockerfile | 4 ++++ python.Dockerfile | 5 +++++ 5 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 python-alpine.Dockerfile create mode 100644 python-slim.Dockerfile create mode 100644 python.Dockerfile diff --git a/Makefile b/Makefile index 30ef151..ff63aee 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ build-all: - docker buildx build -t git.scuroneko.dev/runners/docker:24-bookworm -f docker.Dockerfile . + docker buildx build -t git.scuroneko.dev/runners/docker:bookworm -f docker.Dockerfile . + docker buildx build -t git.scuroneko.dev/runners/python:bookworm -f python.Dockerfile . + docker buildx build -t git.scuroneko.dev/runners/python:bookworm-slim -f python-slim.Dockerfile . + docker buildx build -t git.scuroneko.dev/runners/python:alpine -f python-alpine.Dockerfile . push-all: build-all - docker push git.scuroneko.dev/runners/docker:24-bookworm \ No newline at end of file + docker push git.scuroneko.dev/runners/docker:bookworm + docker push git.scuroneko.dev/runners/python:bookworm + docker push git.scuroneko.dev/runners/python:bookworm-slim \ No newline at end of file diff --git a/docker.Dockerfile b/docker.Dockerfile index fc65b97..a0a858d 100644 --- a/docker.Dockerfile +++ b/docker.Dockerfile @@ -1,7 +1,4 @@ FROM node:24-bookworm -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - curl \ - git \ - docker.io \ - && rm -rf /var/lib/apt/lists/* \ No newline at end of file +RUN apt-get update && \ + apt-get install -y --no-install-recommends ca-certificates curl git docker.io && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/python-alpine.Dockerfile b/python-alpine.Dockerfile new file mode 100644 index 0000000..bd949f6 --- /dev/null +++ b/python-alpine.Dockerfile @@ -0,0 +1,2 @@ +FROM node:24-alpine +RUN apk add --no-cache python3 py3-pip py3-virtualenv git bash ca-certificates \ No newline at end of file diff --git a/python-slim.Dockerfile b/python-slim.Dockerfile new file mode 100644 index 0000000..aad4165 --- /dev/null +++ b/python-slim.Dockerfile @@ -0,0 +1,4 @@ +FROM node:24-bookworm-slim +RUN apt-get update && \ + apt-get install -y --no-install-recommends python3 python3-pip python3-venv git ca-certificates && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/python.Dockerfile b/python.Dockerfile new file mode 100644 index 0000000..0a23140 --- /dev/null +++ b/python.Dockerfile @@ -0,0 +1,5 @@ +FROM node:24-bookworm +RUN apt-get update && \ + apt-get install -y --no-install-recommends python3 python3-pip python3-venv python3-dev \ + git bash ca-certificates build-essential pkg-config && \ + rm -rf /var/lib/apt/lists/* \ No newline at end of file