docker cleanup

This commit is contained in:
cupcakearmy 2019-12-23 10:45:38 +01:00
parent 33877495fd
commit 2253af8118
5 changed files with 28 additions and 13 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
# Ignore everything
**
!/requirements.txt
!/src
**/__pycache__

View File

@ -1,8 +1,9 @@
FROM python:3-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm -rf /root/.cache
RUN pip install --no-cache-dir -r requirements.txt
COPY src .
CMD ["python", "-u", "/app/Mercatus.py"]
CMD ["python", "-u", "/app/mercatus.py"]

8
docker-compose.dev.yml Normal file
View File

@ -0,0 +1,8 @@
version: '3.7'
services:
bot:
build: .
volumes:
- ./data.db:/app/data.db
- ./config.yml:/app/config.yml:ro

View File

@ -1,10 +1,9 @@
version: '3.6'
version: '3.7'
services:
bot:
image: cupcakearmy/mercatus
restart: unless-stopped
command: ["python", "-u", "/app/Mercatus.py"]
volumes:
- ./data.db:/app/data.db
- ./config.yml:/app/config.yml:ro

View File

@ -1,7 +1,7 @@
pytimeparse==1.1.8
alpha-vantage==2.1.2
matplotlib==3.1.2
numpy==1.17.4
pandas==0.25.3
python-telegram-bot==12.2
PyYAML==5.2
pytimeparse==1.1.*
alpha-vantage==2.1.*
matplotlib==3.1.*
numpy==1.18.*
pandas==0.25.*
python-telegram-bot==12.2.*
PyYAML==5.*