DSatishchandra commited on
Commit
1055087
·
verified ·
1 Parent(s): 48a3570

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -12,24 +12,19 @@ RUN apt-get update && apt-get install -y \
12
  libglib2.0-0 \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Set environment variable for Streamlit config to avoid permission error
16
  ENV STREAMLIT_CONFIG=/app/.streamlit
17
 
18
- # Create the .streamlit directory in /app (the app's root directory)
19
  RUN mkdir -p /app/.streamlit
20
 
21
-
22
- # Copy requirements and install them
23
  COPY requirements.txt ./
24
  RUN pip3 install -r requirements.txt
25
 
26
  # Copy the source code and modules directory
27
  COPY src/ ./src/
28
  COPY modules/ ./modules/
29
- # Ensure modules folder is copied
30
-
31
- # Debugging step: List contents of the /app directory
32
- RUN ls -R /app
33
 
34
  # Expose the port that Streamlit will run on
35
  EXPOSE 8501
 
12
  libglib2.0-0 \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Set environment variable for Streamlit config
16
  ENV STREAMLIT_CONFIG=/app/.streamlit
17
 
18
+ # Create the .streamlit directory
19
  RUN mkdir -p /app/.streamlit
20
 
21
+ # Copy the requirements and install them
 
22
  COPY requirements.txt ./
23
  RUN pip3 install -r requirements.txt
24
 
25
  # Copy the source code and modules directory
26
  COPY src/ ./src/
27
  COPY modules/ ./modules/
 
 
 
 
28
 
29
  # Expose the port that Streamlit will run on
30
  EXPOSE 8501