use kaniko to build container

This commit is contained in:
Sebastian Hugentobler 2022-02-15 12:22:17 +01:00
parent c9db2ac370
commit 04bc0ba371
Signed by: shu
GPG key ID: BB32CF3CA052C2F0
7 changed files with 19 additions and 34 deletions

View file

@ -1,8 +1,8 @@
FROM alpine:3.14 AS builder
FROM alpine:3.15 AS builder
ENV VERSION=11.0.0-SNAPSHOT.20211214174334
ENV VERSION=11.0.0-SNAPSHOT.20220213174344
RUN apk add --no-cache \
openjdk11-jdk \
openjdk17-jdk \
maven \
git
@ -24,10 +24,8 @@ RUN apk add --no-cache \
ffmpeg \
flac \
opus \
lame
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
openjdk17-jre-headless
lame \
openjdk17-jre-headless
RUN addgroup -g 2222 airsonic
RUN adduser -h "$AIRSONIC_DIR" -S -D -u 2222 -G airsonic airsonic