mirror of
https://github.com/cupcakearmy/mercatus.git
synced 2024-12-22 08:06:28 +00:00
docker cleanup
This commit is contained in:
parent
33877495fd
commit
2253af8118
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
||||
# Ignore everything
|
||||
**
|
||||
|
||||
!/requirements.txt
|
||||
!/src
|
||||
|
||||
**/__pycache__
|
@ -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
8
docker-compose.dev.yml
Normal file
@ -0,0 +1,8 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
bot:
|
||||
build: .
|
||||
volumes:
|
||||
- ./data.db:/app/data.db
|
||||
- ./config.yml:/app/config.yml:ro
|
@ -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
|
||||
|
@ -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.*
|
Loading…
Reference in New Issue
Block a user