Skip to content

Commit

Permalink
init dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
po3rin committed Jun 15, 2019
1 parent 6cd7e7f commit 3825de0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
17 changes: 16 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ <h1>Dockerfile Dependency graph</h1>
<a href="https://github.com/po3rin/dockerdot"><img id="repo" src="static/github.png"></a>
</header>
<div>
<textarea id="textarea"></textarea>
<textarea id="textarea">
FROM golang:1.12 AS stage0

WORKDIR /go
ADD ./ /go
RUN go build -o stage0_bin

FROM golang:1.12 AS stage1
WORKDIR /go
ADD ./ /go

RUN go build -o stage1_bin
FROM golang:1.12
COPY --from=stage0 /go/stage0_bin /
COPY --from=stage1 /go/stage1_bin /
</textarea>
</div>
<button id="button">check !!!</button>
<div id="graph"></div>
Expand Down
13 changes: 9 additions & 4 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,24 @@ h1{
#textarea {
width: 50vw;
height: 30vh;
border: 1px gray bold;
}
#button{
margin: 8px;
}
@media screen and (max-width:700px) {
#textarea {
width: 90vw;
height: 30vh;
}
svg{
width: 90vw;
}
header{
width: 95vw;
padding: 8px;
}
#graph{
width: 90vw;
}
#textarea {
width: 90vw;
height: 30vh;
}
}

0 comments on commit 3825de0

Please sign in to comment.