Skip to content

Commit

Permalink
Add docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoBuster committed Aug 26, 2019
1 parent 6ef66d4 commit 105705b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:slim

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "python", "start.py" ]

16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
redis:
image: redis
container_name: orariotreni_redis
volumes:
- ./redis-data:/data
expose:
- "6379"

bot:
build: .
container_name: orariotreni_bot
links:
- redis

0 comments on commit 105705b

Please sign in to comment.