Fix font file availability during build by copying fonts directory in frontend-build stage

This commit is contained in:
Ryderjj89
2025-09-29 17:54:56 -04:00
parent 208b7265c5
commit f52d2d53f6

View File

@@ -12,13 +12,15 @@ RUN npm install --omit=dev
# Frontend build stage # Frontend build stage
FROM base AS frontend-build FROM base AS frontend-build
WORKDIR /app/frontend WORKDIR /app/frontend
COPY frontend/package*.json ./ COPY frontend/package*.json ./package.json
COPY frontend/tsconfig.json ./ COPY frontend/package-lock.json ./package-lock.json
COPY frontend/tailwind.config.js ./ COPY frontend/tsconfig.json ./tsconfig.json
COPY frontend/postcss.config.js ./ COPY frontend/tailwind.config.js ./tailwind.config.js
COPY frontend/postcss.config.js ./postcss.config.js
RUN npm install RUN npm install
COPY frontend/public ./public COPY frontend/public ./public
COPY frontend/src ./src COPY frontend/src ./src
COPY frontend/fonts ./fonts
RUN npm run build RUN npm run build
# Production stage # Production stage