[mirotalk] - add official image on docker hub

This commit is contained in:
Miroslav Pejic
2022-11-26 11:39:30 +01:00
parent 6054e40ee9
commit 34e0c71385
5 changed files with 11 additions and 7 deletions
+1
View File
@@ -16,3 +16,4 @@ package-lock.json
# personal env
.env
docker-push.sh
+3 -2
View File
@@ -144,12 +144,13 @@ $ npm start
- Install docker engine: https://docs.docker.com/engine/install/
- Install docker compose: https://docs.docker.com/compose/install/
- Repository docker hub: https://hub.docker.com/r/mirotalk/p2p
```bash
# copy .env.template to .env (edit it according to your needs)
$ cp .env.template .env
# build or rebuild services
$ docker-compose build
# Get official image from Docker Hub
$ docker pull mirotalk/p2p:latest
# create and start containers
$ docker-compose up # -d
# to stop and remove resources
+3 -1
View File
@@ -2,7 +2,7 @@ version: '3'
services:
mirotalk:
image: mirotalk:latest
image: mirotalk/p2p:latest
build:
context: .
dockerfile: Dockerfile
@@ -10,6 +10,8 @@ services:
hostname: mirotalk
volumes:
- .env:/src/.env:ro
- ./app/:/src/app/:ro
- ./public/:/src/public/:ro
restart: unless-stopped
ports:
- '3000:3000'
+3 -3
View File
@@ -70,8 +70,8 @@ $ sudo apt install docker-compose
# Copy .env.template to .env and edit it if needed
$ cp .env.template .env
# Build or rebuild services
$ docker-compose build
# Get official image from Docker Hub
$ docker pull mirotalk/p2p:latest
# Create and start containers
$ docker-compose up -d
```
@@ -204,7 +204,7 @@ If you use `Docker`, paste this:
cd mirotalk
git pull
docker-compose down
docker-compose build
docker pull mirotalk/p2p:latest
docker images |grep '<none>' |awk '{print $3}' |xargs docker rmi
docker-compose up -d
```
+1 -1
View File
@@ -41,6 +41,6 @@
},
"devDependencies": {
"node-fetch": "^2.6.6",
"prettier": "2.7.1"
"prettier": "2.8.0"
}
}