Skip to content

Commit 909b53a

Browse files
committed
add dockerfile and widget
1 parent fcf36e2 commit 909b53a

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

try-widget/index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Minha loja de biscoitos</title>
6+
7+
<style>
8+
9+
* {
10+
box-sizing: border-box;
11+
margin: 0;
12+
padding: 0;
13+
}
14+
html,
15+
body {
16+
width: 100%;
17+
height: 100%;
18+
overflow-x: hidden;
19+
}
20+
21+
.container {
22+
width: 100%;
23+
height: 70vh;
24+
background-color: #f4f4f4;
25+
display: flex;
26+
justify-content: center;
27+
align-items: center;
28+
}
29+
.container > h1 {
30+
font-family: Roboto;
31+
color: #444;
32+
}
33+
</style>
34+
</head>
35+
<body>
36+
<div class="container">
37+
<h1>Meu site de venda de biscoitos</h1>
38+
</div>
39+
40+
<script
41+
defer
42+
async
43+
onload="init('fcd5015c-10d3-4e9c-b395-ec7ed8850165')"
44+
src="https://igorhalfeld-feedbacker-widget.netlify.app/init.js"
45+
>
46+
</script>
47+
</body>
48+
</html>

widget/Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM node:13-alpine as build
2+
3+
WORKDIR /
4+
5+
COPY . .
6+
7+
ENV NODE_ENV=production
8+
RUN npm install --production
9+
RUN npm run build
10+
11+
FROM nginx:1.18.0-alpine as final
12+
13+
WORKDIR /
14+
COPY --from=build ./dist /usr/share/nginx/html

0 commit comments

Comments
 (0)