Add base image
This commit is contained in:
commit
4954f4d2f7
10
.cuddle.yaml
Normal file
10
.cuddle.yaml
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.cuddle/
|
5
scripts/build_cuddle_image.sh
Normal file
5
scripts/build_cuddle_image.sh
Normal file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
DOCKER_BUILDKIT=1 docker build "$TMP/build_cuddle_image.Dockerfile"
|
13
templates/build_cuddle_image.Dockerfile
Normal file
13
templates/build_cuddle_image.Dockerfile
Normal 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
|
1
templates/build_cuddle_image.Dockerfile.dockerignore
Normal file
1
templates/build_cuddle_image.Dockerfile.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.cuddle/
|
Loading…
Reference in New Issue
Block a user