feat: Update Dockerfile
This commit is contained in:
parent
6303bb2e65
commit
40302a605e
@ -1,7 +1,7 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk update && apk add python3 py3-pip
|
RUN apk update && apk add python3 py3-pip
|
||||||
RUN mkdir -p /vk-mastodon-bridge
|
RUN mkdir -p /opt/vk-mastodon-bridge/data
|
||||||
ADD . /vk-mastodon-bridge
|
ADD . /opt/vk-mastodon-bridge
|
||||||
WORKDIR /vk-mastodon-bridge
|
WORKDIR /opt/vk-mastodon-bridge
|
||||||
RUN pip install --upgrade pip && pip install --requirement requirements.txt
|
RUN pip install --upgrade pip && pip install --requirement requirements.txt
|
||||||
CMD source .env; python3 vk-mastodon-bridge.py
|
CMD source .env; python3 vk-mastodon-bridge.py
|
||||||
|
@ -76,9 +76,11 @@ Docker
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
sudo docker build -t vk-mastodon-bridge .
|
sudo docker build -t vk-mastodon-bridge:0.2.0 .
|
||||||
sudo docker run --detach --name vkmbridge vk-mastodon-bridge
|
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
|
||||||
|
|
||||||
История изменений
|
История изменений
|
||||||
=================
|
=================
|
||||||
|
Loading…
Reference in New Issue
Block a user