Skip to content

Commit 8024c4b

Browse files
committed
Dockerized!
1 parent 7286948 commit 8024c4b

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -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+
RUN npm ci
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

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: "3"
2+
3+
services:
4+
server:
5+
build: .
6+
ports:
7+
- 80:80

example/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width" />
66
<title>Browser C# Example</title>
7+
<base href="/browser-csharp/"/>
78
<style>
89
* {
910
box-sizing: border-box;

0 commit comments

Comments
 (0)