ci: docker config

This commit is contained in:
Alexandre Teles 2023-07-12 12:40:27 -03:00
parent 45ef33741c
commit e30a921e0b
No known key found for this signature in database
GPG Key ID: DB1C7FA46B1007F0
2 changed files with 12 additions and 1 deletions

View File

@ -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"]

11
docker-compose.yml Normal file
View 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