Custom domain support
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,5 +1,8 @@
|
||||
FROM eclipse-temurin:21-jdk-jammy AS builder
|
||||
|
||||
# Build argument for domain configuration
|
||||
ARG DOMAIN=attestation.app
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
||||
@@ -11,10 +14,9 @@ RUN git clone --depth 1 --recurse-submodules https://github.com/GrapheneOS/Attes
|
||||
RUN sed -i 's/new InetSocketAddress("::1", 8080)/new InetSocketAddress("0.0.0.0", 8080)/' \
|
||||
src/main/java/app/attestation/server/AttestationServer.java
|
||||
|
||||
# Optional: Patch the domain if you want to use a custom domain
|
||||
# Uncomment and modify the following line for your domain:
|
||||
# RUN sed -i 's/attestation.app/your-domain.com/g' \
|
||||
# src/main/java/app/attestation/server/AttestationServer.java
|
||||
# Patch the domain using the build argument
|
||||
RUN sed -i "s/attestation.app/${DOMAIN}/g" \
|
||||
src/main/java/app/attestation/server/AttestationServer.java
|
||||
|
||||
RUN chmod +x gradlew && ./gradlew build -x test --no-daemon
|
||||
|
||||
|
||||
Reference in New Issue
Block a user