mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 13:56:17 +00:00
ci: docker config
This commit is contained in:
@@ -8,7 +8,7 @@ WORKDIR /usr/src/app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN apt update && \
|
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
|
&& 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"]
|
CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"]
|
||||||
|
|||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user