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

Skip to content
Snippets Groups Projects
Unverified Commit bbd393cd authored by idk's avatar idk Committed by GitHub
Browse files

Merge pull request #100 from urgentquest/dockerfile-migrate-to-eclipse-temurin-base-image

Dockerfile: migrate to eclipse-temurin:17-alpine base image
parents 9ae99fa4 0b32146f
No related branches found
No related tags found
No related merge requests found
Pipeline #2256 passed
FROM alpine:3.17.1 as builder
FROM docker.io/eclipse-temurin:17-alpine as builder
ENV APP_HOME="/i2p"
ARG ANT_VERSION="1.10.15"
WORKDIR /tmp/build
COPY . .
RUN apk add --virtual build-base gettext tar bzip2 apache-ant openjdk17 \
RUN apk add --no-cache gettext tar bzip2 curl \
&& echo "build.built-by=Docker" >> override.properties \
&& ant preppkg-linux-only \
&& rm -rf pkg-temp/osid pkg-temp/lib/wrapper pkg-temp/lib/wrapper.* \
&& apk del build-base gettext tar bzip2 apache-ant openjdk17
&& curl https://dlcdn.apache.org//ant/binaries/apache-ant-${ANT_VERSION}-bin.tar.bz2 | tar -jxf - -C /opt \
&& /opt/apache-ant-${ANT_VERSION}/bin/ant preppkg-linux-only \
&& rm -rf pkg-temp/osid pkg-temp/lib/wrapper pkg-temp/lib/wrapper.*
FROM alpine:3.17.1
FROM docker.io/eclipse-temurin:17-jre-alpine
ENV APP_HOME="/i2p"
RUN apk add openjdk17-jre ttf-dejavu
WORKDIR ${APP_HOME}
COPY --from=builder /tmp/build/pkg-temp .
......
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