Skip to content

Commit

Permalink
Dockerized!
Browse files Browse the repository at this point in the history
  • Loading branch information
89netraM committed Jun 1, 2022
1 parent 7286948 commit 8024c4b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

RUN curl -fsSL https://deb.nodesource.com/setup_16.x | sh -
RUN apt-get update && apt-get install -y nodejs

WORKDIR /app
COPY . ./
RUN npm ci
WORKDIR /app/example
RUN npm ci
RUN npx webpack-cli --mode production

FROM nginx:1.22.0
COPY --from=build /app/example/dist /usr/share/nginx/html
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3"

services:
server:
build: .
ports:
- 80:80
1 change: 1 addition & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8024c4b

Please sign in to comment.