iBrokeTheCode/Multimodal_Product_Classification
0
1# Use the official Python 3.9.6 image from DockerHub2FROM python:3.9.6-slim3 4# Set the working directory in the container5WORKDIR /app6 7# Copy the requirements file into the container8COPY requirements.txt .9 10# Install necessary system packages for h5py and TensorFlow11RUN apt-get update && apt-get install -y \12 build-essential \13 pkg-config \14 libhdf5-dev \15 zlib1g-dev \16 libjpeg-dev \17 liblapack-dev \18 libblas-dev \19 gfortran20 21# Install pip 21.2.322RUN pip install --upgrade pip==21.2.323 24RUN pip install -r requirements.txt25 26# Install Jupyter Notebook27RUN pip install jupyter28 29# Copy the entire project into the container30COPY . .31 32# Expose port 8888 for Jupyter Notebook33EXPOSE 888834 35# Set environment variable to prevent Python from buffering output36ENV PYTHONUNBUFFERED=137 38# Set the default command to start Jupyter Notebook39CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root"]40 