Fix font file availability during build by copying fonts directory in frontend-build stage
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -12,13 +12,15 @@ RUN npm install --omit=dev
|
||||
# Frontend build stage
|
||||
FROM base AS frontend-build
|
||||
WORKDIR /app/frontend
|
||||
COPY frontend/package*.json ./
|
||||
COPY frontend/tsconfig.json ./
|
||||
COPY frontend/tailwind.config.js ./
|
||||
COPY frontend/postcss.config.js ./
|
||||
COPY frontend/package*.json ./package.json
|
||||
COPY frontend/package-lock.json ./package-lock.json
|
||||
COPY frontend/tsconfig.json ./tsconfig.json
|
||||
COPY frontend/tailwind.config.js ./tailwind.config.js
|
||||
COPY frontend/postcss.config.js ./postcss.config.js
|
||||
RUN npm install
|
||||
COPY frontend/public ./public
|
||||
COPY frontend/src ./src
|
||||
COPY frontend/fonts ./fonts
|
||||
RUN npm run build
|
||||
|
||||
# Production stage
|
||||
|
||||
Reference in New Issue
Block a user