Signed-off-by: zehao-intel <zehao.huang@intel.com> Co-authored-by: lvliang-intel <liang1.lv@intel.com> Co-authored-by: chensuyue <suyue.chen@intel.com>
21 lines
545 B
Docker
21 lines
545 B
Docker
# Use node 20.11.1 as the base image
|
|
FROM node:20.11.1
|
|
|
|
# Update package manager and install Git
|
|
RUN apt-get update -y && apt-get install -y git
|
|
|
|
# Clone the front-end code repository
|
|
RUN git clone https://github.com/opea-project/GenAIExamples.git /home/user/GenAIExamples
|
|
|
|
# Set the working directory
|
|
WORKDIR /home/user/GenAIExamples/DocSum/ui/svelte
|
|
|
|
# Install front-end dependencies
|
|
RUN npm install
|
|
|
|
# Expose the port of the front-end application
|
|
EXPOSE 5173
|
|
|
|
# Run the front-end application
|
|
CMD ["npm", "run", "dev", "--", "--host=0.0.0.0"]
|