revanced-api/Dockerfile
oSumAtrIX a2c97dd655
chore: Use Kotlin for ReVanced API (#169)
This commit converts the entire project to a KTor project written in Kotlin.
Various APIs have been updated, removed, or changed.
A proxy is present to allow migration between the old and this API, which can serve requests to endpoints from the old API.
2024-07-11 01:55:59 +02:00

20 lines
397 B
Docker

# Build the application
FROM gradle:latest AS build
ARG GITHUB_ACTOR
ARG GITHUB_TOKEN
ENV GITHUB_ACTOR=$GITHUB_ACTOR
ENV GITHUB_TOKEN=$GITHUB_TOKEN
WORKDIR /app
COPY . .
RUN gradle startShadowScript --no-daemon
# Build the runtime container
FROM eclipse-temurin:latest
WORKDIR /app
COPY --from=build /app/build/libs/revanced-api-*.jar revanced-api.jar
CMD java -jar revanced-api.jar $COMMAND