We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7286948 commit 8024c4bCopy full SHA for 8024c4b
Dockerfile
@@ -0,0 +1,14 @@
1
+FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
2
+
3
+RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sh -
4
+RUN apt-get update && apt-get install -y nodejs
5
6
+WORKDIR /app
7
+COPY . ./
8
+RUN npm ci
9
+WORKDIR /app/example
10
11
+RUN npx webpack-cli --mode production
12
13
+FROM nginx:1.22.0
14
+COPY --from=build /app/example/dist /usr/share/nginx/html
docker-compose.yml
@@ -0,0 +1,7 @@
+version: "3"
+services:
+ server:
+ build: .
+ ports:
+ - 80:80
example/index.html
@@ -4,6 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Browser C# Example</title>
+ <base href="/browser-csharp/"/>
<style>
* {
box-sizing: border-box;
0 commit comments