This commit is contained in:
Tobias Reisinger 2024-05-06 15:22:34 +02:00
commit 4c3dca155c
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 25 additions and 0 deletions

15
docker-bake.hcl Normal file
View file

@ -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}"]
}

10
runner.Dockerfile Normal file
View file

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