Add base image

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 23:10:39 +02:00
commit 4954f4d2f7
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
5 changed files with 30 additions and 0 deletions

10
.cuddle.yaml Normal file
View File

@ -0,0 +1,10 @@
# yaml-language-server: $schema=https://git.front.kjuulh.io/kjuulh/cuddle/raw/branch/main/schemas/base.json
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
vars:
service: "cuddle-image"
scripts:
build_cuddle_image:
type: shell

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.cuddle/

View File

@ -0,0 +1,5 @@
#!/bin/bash
set -e
DOCKER_BUILDKIT=1 docker build "$TMP/build_cuddle_image.Dockerfile"

View File

@ -0,0 +1,13 @@
FROM rust:1.62.1-slim-bullseye
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y build-essential curl git
WORKDIR /app/
RUN git clone https://git.front.kjuulh.io/kjuulh/cuddle.git
WORKDIR /app/cuddle/
RUN cargo build -p cuddle_cli --release

View File

@ -0,0 +1 @@
.cuddle/