mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-18 10:44:33 +08:00
Fix local website build (#1980)
* Fix Dockerfiles * Use local build * Copy front-end instead of cdn * frontend * Fix build
This commit is contained in:
parent
d7c1a9eec4
commit
c49a4264df
@ -11,7 +11,7 @@ COPY ./setup.py ./setup.py
|
||||
COPY ./MANIFEST.in ./MANIFEST.in
|
||||
COPY ./README.md ./README.md
|
||||
COPY ./test ./test
|
||||
RUN python setup.py install
|
||||
RUN pip install .
|
||||
WORKDIR /gradio
|
||||
COPY ./website ./website
|
||||
COPY ./demo ./demo
|
||||
|
@ -14,6 +14,7 @@ RUN npm i pnpm@6 -g
|
||||
WORKDIR /gradio/ui
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
RUN pnpm i
|
||||
RUN pnpm build
|
||||
RUN pnpm build:website
|
||||
WORKDIR /gradio
|
||||
COPY ./gradio ./gradio
|
||||
@ -22,7 +23,7 @@ COPY ./setup.py ./setup.py
|
||||
COPY ./MANIFEST.in ./MANIFEST.in
|
||||
COPY ./README.md ./README.md
|
||||
COPY ./test ./test
|
||||
RUN python setup.py install
|
||||
RUN pip install .
|
||||
WORKDIR /gradio
|
||||
COPY ./website ./website
|
||||
WORKDIR /gradio/website/homepage
|
||||
|
Loading…
Reference in New Issue
Block a user