Files
GenAIExamples/DocSum/ui/docker/Dockerfile
zehao-intel 2f36e57236 Refactor Document Summarization Example with Microservice (#151)
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>
2024-05-20 22:06:24 +08:00

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"]