From aca03ddaa0c77cd5807d31b21e40e70ac6a2e2a2 Mon Sep 17 00:00:00 2001 From: jvlflame Date: Wed, 21 Oct 2020 12:40:24 -0700 Subject: [PATCH] Update dockerfile --- Dockerfile | 5 +++-- dashboard/{javinizer.ps1 => jv.ps1} | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) rename dashboard/{javinizer.ps1 => jv.ps1} (74%) diff --git a/Dockerfile b/Dockerfile index 9cb28499..753b4045 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN wget https://ftp.jeff-server.com/Universal.linux-x64.1.4.4.rar \ && unrar x Universal.linux-x64.1.4.4.rar \ && rm Universal.linux-x64.1.4.4.rar RUN chmod +x /home/Universal/Universal.Server +#RUN ./home/Universal/Universal.Server RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb && apt-get update RUN add-apt-repository universe @@ -21,8 +22,8 @@ RUN pip3 install pillow googletrans RUN apt-get install -y git # Add custom UD components -RUN pwsh -Command "Find-Module -Name 'UniversalDashboard.Style' -Repository 'PSGallery' | Save-Module -Path /home/Universal/UniversalDashboard/Components" - +RUN pwsh -Command "Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted" +RUN pwsh -Command "Install-Module UniversalDashboard.Style; Install-Module UniversalDashboard.CodeEditor" # Clone dev Javinizer branch WORKDIR /home diff --git a/dashboard/javinizer.ps1 b/dashboard/jv.ps1 similarity index 74% rename from dashboard/javinizer.ps1 rename to dashboard/jv.ps1 index 49f2fc11..6af40935 100644 --- a/dashboard/javinizer.ps1 +++ b/dashboard/jv.ps1 @@ -1,4 +1,6 @@ Import-Module "/home/Javinizer/src/Javinizer/Javinizer.psm1" +Import-Module UniversalDashboard.Style +Import-Module UniversalDashboard.CodeEditor $Pages = @()