diff --git a/Dockerfile b/Dockerfile index a0a125f..2f53293 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM alpine:latest RUN apk update && apk add python3 py3-pip -RUN mkdir -p /vk-mastodon-bridge -ADD . /vk-mastodon-bridge -WORKDIR /vk-mastodon-bridge +RUN mkdir -p /opt/vk-mastodon-bridge/data +ADD . /opt/vk-mastodon-bridge +WORKDIR /opt/vk-mastodon-bridge RUN pip install --upgrade pip && pip install --requirement requirements.txt CMD source .env; python3 vk-mastodon-bridge.py diff --git a/README.rst b/README.rst index de9772c..432752e 100644 --- a/README.rst +++ b/README.rst @@ -76,9 +76,11 @@ Docker :: - sudo docker build -t vk-mastodon-bridge . - sudo docker run --detach --name vkmbridge vk-mastodon-bridge - + sudo docker build -t vk-mastodon-bridge:0.2.0 . + sudo docker run --detach \ + --name vk-mastodon-bridge \ + --volume /opt/vk-mastodon-bridge/data:/opt/vk-mastodon-bridge/data \ + vk-mastodon-bridge:0.2.0 История изменений =================