Debian image

stable
clov 2023-07-24 16:52:05 +02:00
commit 599cbff77e
2 changed files with 21 additions and 0 deletions

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# Briar mailbox Dockerfile
Simple Dockerfile to run briar's mailbox as microservices.
(Still working on Alpine based image)

16
debian.dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM debian:latest as base
ARG openjdk=17
RUN apt-get update && apt-get install -y openjdk-${openjdk}-jre-headless && apt-get clean
FROM base as builder
ARG branch=main
RUN apt-get update && apt-get install -y git && apt-get clean
RUN git clone https://code.briarproject.org/briar/briar-mailbox.git /briar-mailbox
WORKDIR /briar-mailbox
RUN git checkout ${branch}
RUN ./gradlew x86LinuxJar
FROM base as runtime
VOLUME /root/.local/share/briar-mailbox
COPY --from="builder" /briar-mailbox/mailbox-cli/build/libs/mailbox-cli-linux-x86_64.jar /
CMD [ "java", "-jar", "/mailbox-cli-linux-x86_64.jar" ]