diff --git a/dockerfile b/dockerfile index 07b51c58a..bc325c3f1 100644 --- a/dockerfile +++ b/dockerfile @@ -1,11 +1,13 @@ # syntax=docker/dockerfile:1 -FROM node:20 +FROM node:20 as builder + WORKDIR /app COPY . /app/ + ENV VITE_COMMIT_HASH="" ENV VITE_APP_VERSION="custom" RUN yarn install && yarn build FROM nginx:stable-alpine-slim EXPOSE 80 -COPY --from=0 /app/dist /usr/share/nginx/html +COPY --from=builder /app/dist /usr/share/nginx/html diff --git a/src/components/layout/account-switcher.tsx b/src/components/layout/account-switcher.tsx index 6e074d848..f9b78048e 100644 --- a/src/components/layout/account-switcher.tsx +++ b/src/components/layout/account-switcher.tsx @@ -24,8 +24,10 @@ function AccountItem({ account, onClick }: { account: Account; onClick?: () => v - {getUserDisplayName(metadata, pubkey)} - + + {getUserDisplayName(metadata, pubkey)} + + }