add first build

This commit is contained in:
Kasper Juul Hermansen 2022-08-11 23:22:12 +02:00
parent 4954f4d2f7
commit 8909b60721
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 6 additions and 7 deletions

4
scripts/build_cuddle_image.sh Normal file → Executable file
View File

@ -2,4 +2,6 @@
set -e
DOCKER_BUILDKIT=1 docker build "$TMP/build_cuddle_image.Dockerfile"
tag="$REGISTRY/$SERVICE:${COMMIT_SHA:0:10}"
DOCKER_BUILDKIT=1 docker build -t "$tag" -f "$TMP/build_cuddle_image.Dockerfile" .

View File

@ -2,12 +2,9 @@ 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
RUN apt-get install libssl-dev
RUN apt-get install -y -q build-essential curl git pkg-config
WORKDIR /app/cuddle/
RUN cargo build -p cuddle_cli --release
RUN cargo install --git https://git.front.kjuulh.io/kjuulh/cuddle.git cuddle_cli