Files
radzen-blazor/Dockerfile

38 lines
1.1 KiB
Docker
Raw Normal View History

# syntax=docker/dockerfile:1
FROM mono:latest
ENV DOCFX_VER 2.58.4
2023-11-14 21:55:43 +02:00
FROM base-image
RUN apt-get update && apt-get install -y \
package1 \
package2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install unzip wget git -y && wget -q -P /tmp https://github.com/dotnet/docfx/releases/download/v${DOCFX_VER}/docfx.zip && \
mkdir -p /opt/docfx && \
unzip /tmp/docfx.zip -d /opt/docfx && \
echo '#!/bin/bash\nmono /opt/docfx/docfx.exe $@' > /usr/bin/docfx && \
chmod +x /usr/bin/docfx && \
rm -rf /tmp/*
COPY Radzen.Blazor /app/Radzen.Blazor
2021-10-29 15:31:42 +03:00
COPY Radzen.DocFX /app/DocFX
COPY RadzenBlazorDemos /app/RadzenBlazorDemos
WebAssembly version of demos added (#704) * Demos as WASM * Copy the default wasm loading CSS. * InMemory database instead SQLite * DbContext filled with data * Host project added * Server renamed to Host * Remove location.reload. * Remove startup. * Stop github caching to file. Use larger page size to improve load time. * Display enum values. * DbContext with static data * Host DbContex added * Examples and Sitemap added * docker updated * Theme changing. * Update Dockerfile * Set WORKDIR. * Do not throw errors for duplicate assets. * Do not inherit Index from DbContextPage * Documentation works again. * Sqlite removed from host * DataGrid Save/Load settings fixed * Demo source fixed * Add loading. * Add loading image * Hide the loading with JS interop. * Add the loading globally. * Add server demos. * Delete data files. * Remove the db copy code from Dockerfile. * DbContext seed fixed * missing await added * Separate solutions for all project, Blazor server and Blazor WebAssembly added * tree demos data access fixed * Avoid using Last() and First() * Orders and OrderDetails data made smaller * Update loading animation * Move the loading to MainLayout. * Update loading animation speed * Seed() improved * Revert "Move the loading to MainLayout." This reverts commit f43ce050396b9483e8809af35493eb35531f254c. * Fix homepage bg color with dark theme * Revert "Revert "Move the loading to MainLayout."" This reverts commit faee40d4ad92f474577434c61f31d847e6777a53. Co-authored-by: Atanas Korchev <akorchev@gmail.com> Co-authored-by: yordanov <vasil@yordanov.info>
2022-11-14 13:14:47 +02:00
COPY RadzenBlazorDemos.Host /app/RadzenBlazorDemos.Host
WORKDIR /app
2021-10-29 15:31:42 +03:00
RUN docfx DocFX/docfx.json
2023-11-14 18:49:48 +02:00
FROM mcr.microsoft.com/dotnet/sdk:8.0
WebAssembly version of demos added (#704) * Demos as WASM * Copy the default wasm loading CSS. * InMemory database instead SQLite * DbContext filled with data * Host project added * Server renamed to Host * Remove location.reload. * Remove startup. * Stop github caching to file. Use larger page size to improve load time. * Display enum values. * DbContext with static data * Host DbContex added * Examples and Sitemap added * docker updated * Theme changing. * Update Dockerfile * Set WORKDIR. * Do not throw errors for duplicate assets. * Do not inherit Index from DbContextPage * Documentation works again. * Sqlite removed from host * DataGrid Save/Load settings fixed * Demo source fixed * Add loading. * Add loading image * Hide the loading with JS interop. * Add the loading globally. * Add server demos. * Delete data files. * Remove the db copy code from Dockerfile. * DbContext seed fixed * missing await added * Separate solutions for all project, Blazor server and Blazor WebAssembly added * tree demos data access fixed * Avoid using Last() and First() * Orders and OrderDetails data made smaller * Update loading animation * Move the loading to MainLayout. * Update loading animation speed * Seed() improved * Revert "Move the loading to MainLayout." This reverts commit f43ce050396b9483e8809af35493eb35531f254c. * Fix homepage bg color with dark theme * Revert "Revert "Move the loading to MainLayout."" This reverts commit faee40d4ad92f474577434c61f31d847e6777a53. Co-authored-by: Atanas Korchev <akorchev@gmail.com> Co-authored-by: yordanov <vasil@yordanov.info>
2022-11-14 13:14:47 +02:00
COPY --from=0 /app/RadzenBlazorDemos.Host /app/RadzenBlazorDemos.Host
COPY --from=0 /app/RadzenBlazorDemos /app/RadzenBlazorDemos
WORKDIR /app/RadzenBlazorDemos.Host
RUN dotnet publish -c Release -o out
ENV ASPNETCORE_URLS http://*:5000
WebAssembly version of demos added (#704) * Demos as WASM * Copy the default wasm loading CSS. * InMemory database instead SQLite * DbContext filled with data * Host project added * Server renamed to Host * Remove location.reload. * Remove startup. * Stop github caching to file. Use larger page size to improve load time. * Display enum values. * DbContext with static data * Host DbContex added * Examples and Sitemap added * docker updated * Theme changing. * Update Dockerfile * Set WORKDIR. * Do not throw errors for duplicate assets. * Do not inherit Index from DbContextPage * Documentation works again. * Sqlite removed from host * DataGrid Save/Load settings fixed * Demo source fixed * Add loading. * Add loading image * Hide the loading with JS interop. * Add the loading globally. * Add server demos. * Delete data files. * Remove the db copy code from Dockerfile. * DbContext seed fixed * missing await added * Separate solutions for all project, Blazor server and Blazor WebAssembly added * tree demos data access fixed * Avoid using Last() and First() * Orders and OrderDetails data made smaller * Update loading animation * Move the loading to MainLayout. * Update loading animation speed * Seed() improved * Revert "Move the loading to MainLayout." This reverts commit f43ce050396b9483e8809af35493eb35531f254c. * Fix homepage bg color with dark theme * Revert "Revert "Move the loading to MainLayout."" This reverts commit faee40d4ad92f474577434c61f31d847e6777a53. Co-authored-by: Atanas Korchev <akorchev@gmail.com> Co-authored-by: yordanov <vasil@yordanov.info>
2022-11-14 13:14:47 +02:00
WORKDIR /app/RadzenBlazorDemos.Host/out
WebAssembly version of demos added (#704) * Demos as WASM * Copy the default wasm loading CSS. * InMemory database instead SQLite * DbContext filled with data * Host project added * Server renamed to Host * Remove location.reload. * Remove startup. * Stop github caching to file. Use larger page size to improve load time. * Display enum values. * DbContext with static data * Host DbContex added * Examples and Sitemap added * docker updated * Theme changing. * Update Dockerfile * Set WORKDIR. * Do not throw errors for duplicate assets. * Do not inherit Index from DbContextPage * Documentation works again. * Sqlite removed from host * DataGrid Save/Load settings fixed * Demo source fixed * Add loading. * Add loading image * Hide the loading with JS interop. * Add the loading globally. * Add server demos. * Delete data files. * Remove the db copy code from Dockerfile. * DbContext seed fixed * missing await added * Separate solutions for all project, Blazor server and Blazor WebAssembly added * tree demos data access fixed * Avoid using Last() and First() * Orders and OrderDetails data made smaller * Update loading animation * Move the loading to MainLayout. * Update loading animation speed * Seed() improved * Revert "Move the loading to MainLayout." This reverts commit f43ce050396b9483e8809af35493eb35531f254c. * Fix homepage bg color with dark theme * Revert "Revert "Move the loading to MainLayout."" This reverts commit faee40d4ad92f474577434c61f31d847e6777a53. Co-authored-by: Atanas Korchev <akorchev@gmail.com> Co-authored-by: yordanov <vasil@yordanov.info>
2022-11-14 13:14:47 +02:00
ENTRYPOINT ["dotnet", "RadzenBlazorDemos.Host.dll"]