From 45bf44a2af421819f3e3ae83f65ce781a49b0bef Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Tue, 8 Apr 2025 23:17:50 -0400 Subject: [PATCH] Fix Docker build by installing frontend dependencies before build; correct Tailwind CSS utility class --- Dockerfile | 5 ++++- frontend/styles/globals.css | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3a526ee..a9fba48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -78,8 +78,11 @@ COPY frontend/services /app/frontend/services/ COPY frontend/styles /app/frontend/styles/ COPY frontend/types /app/frontend/types/ COPY frontend/utils /app/frontend/utils/ +# Install frontend dependencies +RUN cd /app/frontend && pnpm install --frozen-lockfile - +# Build frontend for production +RUN cd /app/frontend && NODE_ENV=production pnpm run build # Build frontend for production RUN cd /app/frontend && NODE_ENV=production pnpm run build diff --git a/frontend/styles/globals.css b/frontend/styles/globals.css index 21f7e16..22501dc 100644 --- a/frontend/styles/globals.css +++ b/frontend/styles/globals.css @@ -821,7 +821,7 @@ body { .user-message-markdown, .assistant-message-markdown { - @apply w-full overflow-wrap-break-word; /* Added overflow-wrap */ + @apply w-full break-words; /* Added overflow-wrap */ } /* Apply styles to markdown elements directly */