Files
GenAIExamples/DocSum/ui/docker/Dockerfile.gradio
Mustafa eb91d1f054 Docsum (#1095)
Signed-off-by: Mustafa <mustafa.cetin@intel.com>
Signed-off-by: Harsha Ramayanam <harsha.ramayanam@intel.com>
Co-authored-by: Harsha Ramayanam <harsha.ramayanam@intel.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: XinyaoWa <xinyao.wang@intel.com>
Co-authored-by: Abolfazl Shahbazi <12436063+ashahba@users.noreply.github.com>
Co-authored-by: chen, suyue <suyue.chen@intel.com>
2024-11-18 17:15:42 +08:00

35 lines
1.0 KiB
Docker

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
# Use the official Python 3.11 slim image as the base image
FROM python:3.11-slim
# Set the default language environment variable
ENV LANG=C.UTF-8
# Define a build argument for architecture (default is "cpu")
ARG ARCH="cpu"
# Update the package list and install necessary packages
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing build-essential
# Create a directory for the application
RUN mkdir -p /home/user
# Copy the application code and requirements file to the container
COPY ./gradio/docsum_ui_gradio.py /home/user/docsum_ui_gradio.py
COPY ./gradio/requirements.txt /home/user/requirements.txt
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip setuptools && \
pip install --no-cache-dir -r /home/user/requirements.txt
# Set the working directory
WORKDIR /home/user/
# Expose the port that the application will run on
EXPOSE 5173
# Define the command to run the application
CMD ["python", "docsum_ui_gradio.py"]