ramagururadhakrishnan commited on
Commit
e398043
·
verified ·
1 Parent(s): 3e704e8

Final Version

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -14
Dockerfile CHANGED
@@ -1,33 +1,22 @@
1
  FROM python:3.10-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Install required system tools
7
  RUN apt-get update && apt-get install -y \
8
- curl \
9
- git \
10
- wget \
11
- unzip \
12
  python3-dev \
13
  libffi-dev \
14
  gcc \
15
- solc \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- # Install Python dependencies
19
- COPY requirements.txt /app/requirements.txt
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Copy all code
23
  COPY . /app
24
 
25
- # Expose Streamlit port
26
  EXPOSE 8501
27
-
28
- # Environment settings for Streamlit
29
  ENV STREAMLIT_SERVER_PORT=8501
30
  ENV STREAMLIT_SERVER_HEADLESS=true
31
 
32
- # Start Streamlit
33
  CMD ["streamlit", "run", "app.py"]
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
+ solc \
 
 
 
7
  python3-dev \
8
  libffi-dev \
9
  gcc \
10
+ git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ COPY requirements.txt .
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY . /app
17
 
 
18
  EXPOSE 8501
 
 
19
  ENV STREAMLIT_SERVER_PORT=8501
20
  ENV STREAMLIT_SERVER_HEADLESS=true
21
 
 
22
  CMD ["streamlit", "run", "app.py"]