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
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user