Replace apk with apt

This commit is contained in:
2024-04-02 17:52:14 +02:00
parent 49f812f867
commit fb3debfb49

View File

@@ -1,6 +1,6 @@
FROM --platform=$BUILDPLATFORM openjdk:22-ea-21-jdk-slim-bullseye AS builder
RUN apk update && apk add gradle git && rm -rf /var/lib/apk/* /var/cache/apk/*
RUN apt update && apt install gradle git && rm -rf /var/lib/apk/* /var/cache/apk/*
WORKDIR /mxids
COPY . .
@@ -8,7 +8,7 @@ RUN ./gradlew shadowJar
FROM openjdk:22-ea-21-jdk-slim-bullseye
RUN apk update && apk add bash && rm -rf /var/lib/apk/* /var/cache/apk/*
RUN apt update && apt install bash && rm -rf /var/lib/apk/* /var/cache/apk/*
VOLUME /etc/mxids
VOLUME /var/mxids