kopia lustrzana https://github.com/fabston/TradingView-Webhook-Bot
dokerize
rodzic
02a8529fc4
commit
c648e1132a
|
@ -0,0 +1,11 @@
|
||||||
|
FROM python:3.9-alpine
|
||||||
|
LABEL Auther="jon4hz"
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY requirements.txt ./
|
||||||
|
RUN apk add gcc python3-dev openssl-dev musl-dev libffi-dev &&\
|
||||||
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY main.py handler.py config.py ./
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
ENTRYPOINT [ "python", "main.py" ]
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
tradingview-webhook-bot:
|
||||||
|
build: .
|
||||||
|
container_name: tradingview-webhook-bot
|
||||||
|
ports:
|
||||||
|
- '80:80'
|
||||||
|
restart: unless-stopped
|
Ładowanie…
Reference in New Issue