Browse Source

feat: modify docker file

luqianyu 1 year ago
parent
commit
baa8da95f3

+ 12 - 4
Dockerfile

@@ -1,7 +1,15 @@
-FROM docker.finogeeks.club/base/node-nginx:latest
-MAINTAINER xupeng@finogeeks.com
-ADD nginx.conf /etc/nginx/nginx.conf
+FROM docker.finogeeks.club/base/node-base:10
+MAINTAINER luqianyu@finogeeks.com
 WORKDIR /web
 COPY ./  /web
 RUN npm install -g pm2
-CMD pm2 start pm2.json && pm2 log
+RUN apt-get update 
+RUN apt-get install -y zip
+RUN npm install -g yarn
+RUN cd scripts
+RUN sh publish-plugin-auth.sh
+RUN sh publish-plugin-bim.sh
+RUN sh publish-plugin-favorite.sh
+RUN sh publish-plugin-net-disk.sh
+RUN sh publish-plugin-tam.sh
+RUN sh publish-plugin-todolist.sh

+ 1 - 1
docker-compose.yml

@@ -1,7 +1,7 @@
 version: '2'
 services:
   test:
-    image: test:5
+    image: docker.finogeeks.club/finochat/finchat-desktop-publish:1.1.1-plugins
     build: .
     container_name: test
     # volumes:

+ 1 - 0
scripts/publish-plugin-auth.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf plugin-auth
 git clone https://git.finogeeks.club/finoapp-desktop/plugin-auth.git

+ 1 - 0
scripts/publish-plugin-bim.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf plugin-bim
 git clone https://git.finogeeks.club/finoapp-desktop/plugin-bim.git

+ 1 - 0
scripts/publish-plugin-favorite.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf plugin-favorite
 git clone https://git.finogeeks.club/finoapp-desktop/plugin-favorite.git

+ 1 - 0
scripts/publish-plugin-net-disk.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf net-disk
 git clone https://git.finogeeks.club/finoapp-desktop/net-disk.git

+ 1 - 0
scripts/publish-plugin-tam.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf plugin-tam
 git clone https://git.finogeeks.club/finoapp-desktop/plugin-tam.git

+ 1 - 0
scripts/publish-plugin-todolist.sh

@@ -1,3 +1,4 @@
+#!/bin/bash
 cd ../
 rm -rf plugin-todolist
 git clone https://git.finogeeks.club/finoapp-desktop/plugin-todolist.git