euler314 commited on
Commit
9264e00
·
verified ·
1 Parent(s): 1e080a4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -11
Dockerfile CHANGED
@@ -5,24 +5,20 @@ WORKDIR /app
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
 
 
8
  libeigen3-dev \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Copy all necessary files
12
- COPY app.py cubic_cpp.cpp setup.py requirements.txt ./
13
 
14
- # Install Python dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Build C++ extension
18
  RUN pip install -e .
19
 
20
- # Expose Streamlit port
21
- EXPOSE 8501
22
-
23
- # Set Streamlit environment variables
24
- ENV STREAMLIT_SERVER_PORT=8501
25
- ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
26
-
27
  # Run the application
28
  CMD ["streamlit", "run", "app.py"]
 
5
  # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
+ cmake \
9
+ python3-dev \
10
  libeigen3-dev \
11
+ python3-pybind11 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Copy files
15
+ COPY requirements.txt cubic_cpp.cpp setup.py app.py ./
16
 
17
+ # Install Python requirements
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
+ # Build the C++ extension
21
  RUN pip install -e .
22
 
 
 
 
 
 
 
 
23
  # Run the application
24
  CMD ["streamlit", "run", "app.py"]