Skip to content

Commit

Permalink
Update web build files
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Oct 19, 2020
1 parent 2bfeacb commit d2dbaab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,18 @@ ENV Data__RepositoryPath ./data/Repository
ENV Data__ConnectionString ./data/database.db
ENV UniversalDashboard__AssetsFolder ./data/UniversalDashboard
ENV Logging__Path ./data/logs/log.txt
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update -y
RUN apt-get install -y mediainfo software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get update -y
RUN apt-get install -y python3.8 python3-pip
RUN pip3 install pillow googletrans
RUN apt-get install -y git

RUN pwsh -Command "Set-PSRepository PSGallery -InstallationPolicy Trusted; Install-Module Javinizer -Force"
RUN pwsh -Command "git clone -b dev https://github.com/jvlflame/Javinizer.git; Copy-Item -Path Javinizer/dashboard/* -Recurse -Destination /data/Repository"
RUN git clone -b dev https://github.com/jvlflame/Javinizer.git
RUN cp -r Javinizer/dashboard/* /data/Repository/
RUN rm Javinizer -rf
ENTRYPOINT ["./home/Universal/Universal.Server"]
4 changes: 2 additions & 2 deletions dashboard/javinizer.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Import-Module "C:\ProgramData\Javinizer\src\Javinizer\Javinizer.psd1"
Import-Module "/root/.local/share/powershell/Modules/Javinizer/2.1.3/Javinizer.psm1"

$Pages = @()

Expand All @@ -7,4 +7,4 @@ Get-ChildItem (Join-Path $PSScriptRoot "pages") -Recurse -File | ForEach-Object
$Pages += $Page
}

New-UDDashboard -Title "PowerShell Universal Dashboard" -Pages $Pages -Theme $Theme
New-UDDashboard -Title "Javinizer Web" -Pages $Pages -Theme $Theme
2 changes: 1 addition & 1 deletion dashboard/pages/main.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$cache:settingsPath = 'C:\ProgramData\Javinizer\src\Javinizer\jvSettings.json'
$cache:settingsPath = '/root/.local/share/powershell/Modules/Javinizer/2.1.3/jvSettings.json'
$cache:settings = Get-Content -Path $cache:settingsPath | ConvertFrom-Json
$cache:inProgress = $false
$cache:findData = @()
Expand Down

0 comments on commit d2dbaab

Please sign in to comment.