Browse Source

ajout du Dockerfile

Lou 3 years ago
parent
commit
cadfdd292c
3 changed files with 18 additions and 2 deletions
  1. 16
    0
      Dockerfile
  2. 1
    1
      src/components/footer/index.scss
  3. 1
    1
      src/components/header/index.jsx

+ 16
- 0
Dockerfile View File

@@ -0,0 +1,16 @@
1
+FROM node:current-bullseye
2
+
3
+RUN mkdir -p /var/www \
4
+    && cd /var/www \
5
+    && git clone https://git.yannweb.net/cli/cli-web.git \
6
+    && cd cli-web \
7
+    && rm -rf .git \
8
+    && npm install --platform=linux --arch=arm64 sharp \
9
+    && npm install --platform=linux --arch=arm64 --arm-version=8 \
10
+    && npm run build
11
+
12
+EXPOSE 9000
13
+
14
+WORKDIR /var/www/cli-web
15
+
16
+CMD npm run serve

+ 1
- 1
src/components/footer/index.scss View File

@@ -2,7 +2,7 @@
2 2
 @use "../../scss/abstracts/fonts" as *;
3 3
 
4 4
 #footer {
5
-	position: fixed;
5
+	position:relative;
6 6
 	bottom: 0;
7 7
 	background: $light;
8 8
 	padding: 1.5rem 0;

+ 1
- 1
src/components/header/index.jsx View File

@@ -8,7 +8,7 @@ import HeaderContext from "../../context/headerContext";
8 8
 const Header = () => {
9 9
 	const navbarContext = useContext(HeaderContext);
10 10
 	const { ref, inView } = useInView({
11
-		threshold: 0.03
11
+		threshold: 0.065
12 12
 	});
13 13
 
14 14
 	const handleVisibility = (x) => {

Loading…
Cancel
Save