From 40302a605e412180a5440c6933efe9ff21cce64c Mon Sep 17 00:00:00 2001 From: ge Date: Tue, 7 Jun 2022 18:32:25 +0300 Subject: [PATCH] feat: Update Dockerfile --- Dockerfile | 6 +++--- README.rst | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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 История изменений =================