I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit ac4daeb8 authored by Jean-Luc's avatar Jean-Luc Committed by GitHub
Browse files

changed baseimage to allow for multiarch build (specifically arm64)

parent b10cf8f6
No related branches found
No related tags found
No related merge requests found
FROM jlesage/baseimage:alpine-3.15-glibc as builder FROM alpine:latest as builder
ENV APP_HOME="/i2p" ENV APP_HOME="/i2p"
WORKDIR /tmp/build WORKDIR /tmp/build
COPY . . COPY . .
RUN add-pkg --virtual build-base gettext tar bzip2 apache-ant openjdk17 \ RUN apk add --virtual build-base gettext tar bzip2 apache-ant openjdk17 \
&& ant preppkg-linux-only \ && ant preppkg-linux-only \
&& rm -rf pkg-temp/osid pkg-temp/lib/wrapper pkg-temp/lib/wrapper.* \ && rm -rf pkg-temp/osid pkg-temp/lib/wrapper pkg-temp/lib/wrapper.* \
&& del-pkg build-base gettext tar bzip2 apache-ant openjdk17 && apk del build-base gettext tar bzip2 apache-ant openjdk17
FROM jlesage/baseimage:alpine-3.15-glibc FROM alpine:latest
ENV APP_HOME="/i2p" ENV APP_HOME="/i2p"
RUN add-pkg openjdk17-jre RUN apk add openjdk17-jre
WORKDIR ${APP_HOME} WORKDIR ${APP_HOME}
COPY --from=builder /tmp/build/pkg-temp . COPY --from=builder /tmp/build/pkg-temp .
# "install" i2p by copying over installed files # "install" i2p by copying over installed files
COPY docker/rootfs/ / COPY --chown=root:root docker/rootfs/ /
RUN chmod +x /startapp.sh
# Mount home and snark # Mount home and snark
VOLUME ["${APP_HOME}/.i2p"] VOLUME ["${APP_HOME}/.i2p"]
...@@ -34,3 +35,4 @@ LABEL \ ...@@ -34,3 +35,4 @@ LABEL \
org.label-schema.vcs-url="https://github.com/i2p/i2p.i2p" \ org.label-schema.vcs-url="https://github.com/i2p/i2p.i2p" \
org.label-schema.schema-version="1.0" org.label-schema.schema-version="1.0"
ENTRYPOINT ["/startapp.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment