diff --git a/.dockerignore b/.dockerignore index ba787e9..3e72e30 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,3 +3,5 @@ dist/ frontend/node_modules/ frontend/src/tailwind/tailwind.generated.css + +charts/ diff --git a/Dockerfile b/Dockerfile index d94d3ab..146668b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,8 @@ RUN NODE_ENV=production npm run build FROM common as build-frontend LABEL stage="build-frontend" +ARG VERSION=unknown + WORKDIR /app/frontend RUN npm ci @@ -41,6 +43,7 @@ COPY frontend/postcss.config.js /app/frontend/postcss.config.js COPY frontend/tailwind.config.js /app/frontend/tailwind.config.js COPY frontend/src/ /app/frontend/src/ COPY frontend/public/ /app/frontend/public/ +COPY frontend/.env.production /app/frontend/.env.production RUN NODE_ENV=production npm run build ################## diff --git a/frontend/.env.production b/frontend/.env.production new file mode 100644 index 0000000..18fbdfe --- /dev/null +++ b/frontend/.env.production @@ -0,0 +1 @@ +REACT_APP_VERSION=$VERSION \ No newline at end of file diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 8c8e4c0..d91debc 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,5 +1,6 @@ import React from "react"; import { Route, Switch } from "react-router-dom"; +import { Footer } from "./components/Footer"; import { LoginFailure } from "./components/LoginFailure"; import { LoginSuccess } from "./components/LoginSuccess"; import { NavBar } from "./components/NavBar"; @@ -19,20 +20,29 @@ export function App() { } return ( -