commit 4c3dca155cc6a59ea61d8d0ce5b7434028c74694 Author: Tobias Reisinger Date: Mon May 6 15:22:34 2024 +0200 Init diff --git a/docker-bake.hcl b/docker-bake.hcl new file mode 100644 index 0000000..46a5f7f --- /dev/null +++ b/docker-bake.hcl @@ -0,0 +1,15 @@ +variable "REG" { + default = "registry.serguzim.me" +} +variable "REPO_RUNNER" { + default = "emgauwa/runner" +} +variable "TAG" { + default = "latest" +} + +target "runner" { + output = ["type=docker"] + dockerfile = "./runner.Dockerfile" + tags = ["${REG}/${REPO_RUNNER}:latest", "${REG}/${REPO_RUNNER}:${TAG}"] +} diff --git a/runner.Dockerfile b/runner.Dockerfile new file mode 100644 index 0000000..1c13af4 --- /dev/null +++ b/runner.Dockerfile @@ -0,0 +1,10 @@ +FROM node:16-bullseye + +RUN apt update \ + && apt install -y docker.io \ + && curl https://sh.rustup.rs -sSf | sh -s -- -y \ + && . "$HOME/.cargo/env" \ + && cargo install cross + +ENV CROSS_CONTAINER_IN_CONTAINER=true +