feat: Update Dockerfile

This commit is contained in:
ge 2022-06-07 18:32:25 +03:00
parent 6303bb2e65
commit 40302a605e
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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
История изменений
=================