From e30a921e0ba187265edf866ecf36124dfc61df64 Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Wed, 12 Jul 2023 12:40:27 -0300 Subject: [PATCH] ci: docker config --- Dockerfile | 2 +- docker-compose.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index c1bbd09..fcdafb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/app COPY . . RUN apt update && \ - apt-get install build-essential libffi-dev --no-install-recommends -y \ + apt-get install build-essential libffi-dev libssl-dev openssl --no-install-recommends -y \ && pip install --no-cache-dir -r requirements.txt CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..818a798 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" + +services: + revanced-api: + container_name: revanced-api + image: ghcr.io/revanced/revanced-api:latest + environment: + - GITHUB_TOKEN=YOUR_GITHUB_TOKEN + ports: + - 127.0.0.1:7934:8000 + restart: unless-stopped