now the app is in opt folder

This commit is contained in:
Mylloon 2021-08-20 08:42:34 +02:00
parent 4470d0d44c
commit acefa440b3
3 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@ FROM python:3.9.5-slim
COPY requirements.txt .
RUN pip install -r requirements.txt
WORKDIR /opt
COPY src .
CMD [ "python", "-u", "./main.py" ]

View file

@ -38,7 +38,7 @@ docker run -d \
--ACCESS_TOKEN="yourAccessToken" \
--PREFIX="yourPrefix" \
--CHANNEL="yourChannel(s)" \
-v /here/your/path/:/db
-v /here/your/path/:/opt/db
```

View file

@ -8,5 +8,5 @@ services:
- PREFIX=yourPrefix
- CHANNEL=yourChannel(s)
volumes:
- /here/your/path/:/db
- /here/your/path/:/opt/db
restart: unless-stopped