From 61c3b671d380126080da3ce939df25b5c600a44e Mon Sep 17 00:00:00 2001
From: r7wx <89222432+r7wx@users.noreply.github.com>
Date: Wed, 24 Nov 2021 23:05:50 +0100
Subject: [PATCH] code quality
---
README.md | 4 ++++
dump-hub-app/Dockerfile | 2 +-
dump-hub-app/src/app.css | 4 ++--
dump-hub-app/src/core/paginator/paginator.css | 2 --
dump-hub/Dockerfile | 4 ++--
5 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 454df2a..08f13c7 100644
--- a/README.md
+++ b/README.md
@@ -5,6 +5,10 @@
Self hosted search engine for data leaks and password dumps
+
+
+[![CodeFactor](https://www.codefactor.io/repository/github/r7wx/dump-hub/badge)](https://www.codefactor.io/repository/github/r7wx/dump-hub)
+
---
diff --git a/dump-hub-app/Dockerfile b/dump-hub-app/Dockerfile
index b8ecc32..a8f6b23 100644
--- a/dump-hub-app/Dockerfile
+++ b/dump-hub-app/Dockerfile
@@ -4,7 +4,7 @@ COPY . .
RUN npm install
RUN npm run build
-FROM nginx AS dump-hub-web
+FROM nginx:1.21.4 AS dump-hub-web
WORKDIR /usr/share/nginx/html
COPY --from=react-builder /opt/dump-hub-app/build .
WORKDIR /etc/nginx
diff --git a/dump-hub-app/src/app.css b/dump-hub-app/src/app.css
index 03c6514..20aaf66 100644
--- a/dump-hub-app/src/app.css
+++ b/dump-hub-app/src/app.css
@@ -3,8 +3,8 @@
}
.branding {
- padding: 0px 10px !important;
- min-width: 0px !important;
+ padding: 0 10px !important;
+ min-width: 0 !important;
}
.branding a {
diff --git a/dump-hub-app/src/core/paginator/paginator.css b/dump-hub-app/src/core/paginator/paginator.css
index afa7678..c73e60b 100644
--- a/dump-hub-app/src/core/paginator/paginator.css
+++ b/dump-hub-app/src/core/paginator/paginator.css
@@ -8,13 +8,11 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
- background-color: #e8e8e8;
color: black;
text-decoration: none;
padding: 10px;
background: none !important;
border: none;
- padding: 0 !important;
cursor: pointer;
}
diff --git a/dump-hub/Dockerfile b/dump-hub/Dockerfile
index 64f005b..3dc6e44 100644
--- a/dump-hub/Dockerfile
+++ b/dump-hub/Dockerfile
@@ -1,9 +1,9 @@
-FROM golang AS dh-builder
+FROM golang:1.17.3 AS dh-builder
WORKDIR /opt/dump-hub
COPY . .
RUN make
-FROM busybox AS dump-hub-be
+FROM busybox:stable AS dump-hub-be
WORKDIR /usr/bin
COPY --from=dh-builder /opt/dump-hub/bin/dump-hub .
ENTRYPOINT ["/usr/bin/dump-hub"]
\ No newline at end of file