forked from niranjanblank/CapstoneProject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (23 loc) · 811 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use an official PyTorch image with CUDA support for GPU
FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
# Set the working directory in the container
WORKDIR /app
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements.txt file into the container
COPY requirements.txt /app/
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of application's code into the container
COPY . /app
# Make port 8501 available to the world outside this container
EXPOSE 8501
# Run streamlit when the container launches
CMD ["streamlit", "run", "Home.py"]