mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 13:56:17 +00:00
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.
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,19 +1,19 @@
|
||||
FROM python:3.11-slim
|
||||
# Build the application
|
||||
FROM gradle:latest AS build
|
||||
|
||||
ARG GITHUB_ACTOR
|
||||
ARG GITHUB_TOKEN
|
||||
ARG SENTRY_DSN
|
||||
|
||||
ENV GITHUB_TOKEN $GITHUB_TOKEN
|
||||
ENV SENTRY_DSN $SENTRY_DSN
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
ENV GITHUB_ACTOR=$GITHUB_ACTOR
|
||||
ENV GITHUB_TOKEN=$GITHUB_TOKEN
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN gradle startShadowScript --no-daemon
|
||||
|
||||
RUN apt update && \
|
||||
apt-get install git build-essential libffi-dev libssl-dev openssl --no-install-recommends -y \
|
||||
&& pip install --no-cache-dir -r requirements.txt
|
||||
# Build the runtime container
|
||||
FROM eclipse-temurin:latest
|
||||
|
||||
VOLUME persistence
|
||||
|
||||
CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"]
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/build/libs/revanced-api-*.jar revanced-api.jar
|
||||
CMD java -jar revanced-api.jar $COMMAND
|
||||
|
||||
Reference in New Issue
Block a user