[mirotalk] - update dockerfile and dep, add workflows build
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
name: build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Login Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and publish
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: ./
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: mirotalk/p2p:latest
|
||||||
+14
-13
@@ -1,23 +1,24 @@
|
|||||||
FROM node:18-alpine
|
# Use a lightweight Node.js image
|
||||||
# https://hub.docker.com/_/node
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
# Copy package.json and .env dependencies
|
||||||
bash \
|
|
||||||
vim
|
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY .env.template ./.env
|
COPY .env.template ./.env
|
||||||
|
|
||||||
RUN \
|
# Install necessary system packages and dependencies
|
||||||
npm install && \
|
RUN apk add --no-cache \
|
||||||
npm cache clean --force && \
|
bash \
|
||||||
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc/*
|
vim \
|
||||||
|
&& npm install \
|
||||||
|
&& npm cache clean --force \
|
||||||
|
&& rm -rf /tmp/* /var/tmp/* /usr/share/doc/*
|
||||||
|
|
||||||
|
# Copy the application code
|
||||||
COPY app app
|
COPY app app
|
||||||
COPY public public
|
COPY public public
|
||||||
|
|
||||||
EXPOSE 3000/tcp
|
# Set default command to start the application
|
||||||
|
CMD ["npm", "start"]
|
||||||
CMD npm start
|
|
||||||
+1
-1
@@ -40,7 +40,7 @@ dependencies: {
|
|||||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.3.31
|
* @version 1.3.32
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mirotalk",
|
"name": "mirotalk",
|
||||||
"version": "1.3.31",
|
"version": "1.3.32",
|
||||||
"description": "A free WebRTC browser-based video call",
|
"description": "A free WebRTC browser-based video call",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"ngrok": "^5.0.0-beta.2",
|
"ngrok": "^5.0.0-beta.2",
|
||||||
"nodemailer": "^6.9.13",
|
"nodemailer": "^6.9.13",
|
||||||
"openai": "^4.44.0",
|
"openai": "^4.45.0",
|
||||||
"qs": "^6.12.1",
|
"qs": "^6.12.1",
|
||||||
"socket.io": "^4.7.5",
|
"socket.io": "^4.7.5",
|
||||||
"swagger-ui-express": "^5.0.0",
|
"swagger-ui-express": "^5.0.0",
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
|
||||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
|
||||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||||
* @version 1.3.31
|
* @version 1.3.32
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user