mirror of
https://github.com/revanced/revanced-api.git
synced 2025-05-01 23:24:39 +02:00
ci: docker config
This commit is contained in:
parent
45ef33741c
commit
e30a921e0b
@ -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
|
Loading…
x
Reference in New Issue
Block a user