now the app is in opt folder
This commit is contained in:
parent
4470d0d44c
commit
acefa440b3
3 changed files with 3 additions and 2 deletions
|
@ -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" ]
|
||||
|
|
|
@ -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
|
||||
|
||||
```
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ services:
|
|||
- PREFIX=yourPrefix
|
||||
- CHANNEL=yourChannel(s)
|
||||
volumes:
|
||||
- /here/your/path/:/db
|
||||
- /here/your/path/:/opt/db
|
||||
restart: unless-stopped
|
||||
|
|
Loading…
Reference in a new issue