From acefa440b34c606205a9fd36811d773c40dd311f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 20 Aug 2021 08:42:34 +0200 Subject: [PATCH] now the app is in opt folder --- Dockerfile | 1 + README.md | 2 +- docker-compose.yml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47f84c0..afc274a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/README.md b/README.md index ef28b9f..593c31f 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/docker-compose.yml b/docker-compose.yml index 919d288..97479d2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,5 @@ services: - PREFIX=yourPrefix - CHANNEL=yourChannel(s) volumes: - - /here/your/path/:/db + - /here/your/path/:/opt/db restart: unless-stopped