Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Oct 21, 2020
1 parent c125a5c commit b28f117
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ 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 ls /home/Universal

# Add custom UD components
RUN pwsh -Command "Find-Module -Name 'UniversalDashboard.Style' -Repository 'PSGallery' | Save-Module -Path /Universal/UniversalDashboard/Components"

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
RUN apt-get install -y powershell
Expand All @@ -24,15 +27,10 @@ RUN apt-get install -y git
WORKDIR /home
RUN git clone -b dev https://github.com/jvlflame/Javinizer.git


EXPOSE 5000
VOLUME ["/data"]
ENV Data__RepositoryPath ./data/Repository
ENV Data__ConnectionString ./data/database.db
ENV UniversalDashboard__AssetsFolder ./data/UniversalDashboard
ENV Logging__Path ./data/logs/log.txt

# Add custom UD components
WORKDIR /home/data/UniversalDashboard/Components
RUN pwsh -Command "Find-Module -Name 'UniversalDashboard.Style' -Repository 'PSGallery' | Save-Module -Path ."
ENTRYPOINT ["/home/Universal/Universal.Server"]

0 comments on commit b28f117

Please sign in to comment.