mirror of
https://github.com/open-webui/open-webui
synced 2025-06-03 19:27:12 +00:00
Update Dockerfile to improve re-build time
While building docker image, copy only the required files/folders for building FE. Improves re-building time
This commit is contained in:
parent
30d15c1b4b
commit
4a5297b1cf
@ -32,7 +32,13 @@ RUN apk add --no-cache git
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
# Copy only required files for build
|
||||
COPY scripts ./scripts
|
||||
COPY static ./static
|
||||
COPY vite.config.ts postcss.config.js tailwind.config.js tsconfig.json svelte.config.js ./
|
||||
COPY CHANGELOG.md ./
|
||||
COPY src ./src
|
||||
|
||||
ENV APP_BUILD_HASH=${BUILD_HASH}
|
||||
RUN npm run build
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user