feat (docker) : add standalone docker image
All checks were successful
Cadoles/mktools/pipeline/head This commit looks good
Cadoles/mktools/pipeline/pr-master This commit looks good

This commit is contained in:
2025-03-28 13:54:35 +01:00
parent f249f78d9f
commit 65c1aa57fe
3 changed files with 29 additions and 0 deletions

21
misc/image/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM alpine:3.21
RUN apk update --no-cache \
&& apk add --no-cache \
make \
curl \
bash \
git \
&& mkdir /mktools
COPY ./tasks/* mktools/
RUN touch /mktools/Makefile \
&& echo "-include /mktools/*.mk" >> /mktools/Makefile \
&& mkdir /code \
&& git config --global --add safe.directory /code
WORKDIR /code
COPY --chmod=550 ./misc/image/mktools /usr/local/bin/mktools
ENTRYPOINT [ "mktools" ]

2
misc/image/mktools Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env sh
make -f /mktools/Makefile $1