Skip to content

Commit d60d9a7

Browse files
Add docker build
1 parent 1e17606 commit d60d9a7

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git/
2+
node_modules/
3+
dist/
4+
*.generated.js

.github/main.workflow

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
workflow "Build, Test" {
2+
on = "push"
3+
resolves = ["Docker build"]
4+
}
5+
6+
action "Docker build" {
7+
uses = "actions/docker/cli@master"
8+
args = "build . -f Dockerfile.mono"
9+
}

Dockerfile.mono

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM node:10 AS node-build
2+
3+
COPY . /app
4+
5+
WORKDIR /app/src/React.Core
6+
7+
RUN npm i
8+
RUN npm run build
9+
10+
WORKDIR /app/src/React.Core/babel-legacy
11+
12+
RUN npm i
13+
RUN npm run build
14+
15+
WORKDIR /app/src/React.Sample.Webpack.CoreMvc
16+
17+
RUN npm i
18+
RUN npm run build
19+
20+
FROM mono:latest AS mono
21+
22+
COPY . /app
23+
24+
COPY --from=node-build /app/src/React.Core/Resources /app/src/React.Core/Resources
25+
26+
RUN mono --version

0 commit comments

Comments
 (0)