Skip to content

Commit

Permalink
Main
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Nov 28, 2023
1 parent 2bf7d5c commit 00b7668
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM golang:1.21 as build

WORKDIR /app
COPY . .
COPY . .
RUN CGO_ENABLED=0 go build -o server main.go

FROM scratch
WORKDIR /app
COPY --from=build /app/server .
COPY flowramps.jpg . # Copia a imagem para o diretório do container
CMD ["./server"]
Binary file added flowramps.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 17 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,31 @@ func main() {
background-color: #00FF00; /* Cor de fundo verde claro */
flex-direction: column;
}
h1 {
h1, p {
text-align: center;
color: #333; /* Defina a cor do texto que desejar */
}
p {
text-align: center;
color: #333; /* Defina a cor do texto que desejar */
.image-container {
display: flex;
justify-content: center;
align-items: center;
border-radius: 15px; /* Adicione bordas arredondadas */
overflow: hidden; /* Garante que as bordas arredondadas se apliquem corretamente */
margin: 20px; /* Adicione margem ao redor da imagem */
}
.image-container img {
border-radius: 15px; /* Mantenha as bordas arredondadas na imagem */
max-width: 100%; /* Garante que a imagem não ultrapasse o contêiner */
height: auto; /* Mantenha a proporção da imagem */
}
</style>
</head>
<body>
<h1>Workshop DevOps !!!!</h1>
<div style="display: flex; flex-direction: column; align-items: center;">
<div class="image-container">
<img src="flowramps.jpg" alt="Imagem" />
</div>
<div>
<p>Nome do Pode: ` + hostname + `</p>
</div>
</body>
Expand All @@ -46,4 +58,3 @@ func main() {
http.Handle("/metrics", promhttp.Handler())
http.ListenAndServe(":8080", nil)
}

0 comments on commit 00b7668

Please sign in to comment.