Skip to content

Commit

Permalink
feat: use global version in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-maury committed Nov 26, 2024
1 parent 32f6d5d commit 9d82b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ ENV VITE_REALT_THEGRAPH_GNOSIS=$VITE_REALT_THEGRAPH_GNOSIS
ENV VITE_REALT_THEGRAPH_RMM=$VITE_REALT_THEGRAPH_RMM
ENV VITE_REALT_THEGRAPH_ETH=$VITE_REALT_THEGRAPH_ETH
ENV GENERATE_SOURCEMAP=false
COPY ../package.json ../
RUN npm run build

FROM nginx:1.25.4-alpine as serve
ENV NODE_ENV production
RUN apk update && apk add bash nodejs npm
COPY ../package.json /usr/share/
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/nginx/*.sh /usr/share/nginx/
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Common/Version.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import packageJson from '../../../package.json';
import rootPackageJson from '../../../../package.json';

const Version = () => {
return (
<h2>Version: {packageJson.version}</h2>
<h2>Version: {rootPackageJson.version}</h2>
);
};

Expand Down

0 comments on commit 9d82b00

Please sign in to comment.