Init
This commit is contained in:
commit
4c3dca155c
2 changed files with 25 additions and 0 deletions
15
docker-bake.hcl
Normal file
15
docker-bake.hcl
Normal 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
10
runner.Dockerfile
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue