wracell commited on
Commit
a7bb2f2
·
1 Parent(s): 777925d
Dockerfile CHANGED
@@ -1,9 +1,8 @@
1
  FROM python:3.9-slim
2
 
3
- # Set working directory
4
  WORKDIR /app
5
 
6
- # Install necessary OS packages
7
  RUN apt-get update && apt-get install -y \
8
  build-essential \
9
  curl \
@@ -11,34 +10,26 @@ RUN apt-get update && apt-get install -y \
11
  git \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Copy requirement and source files
 
 
 
15
  COPY requirements.txt ./
16
  COPY src/ ./src/
17
- COPY src/ .
18
 
19
- # Install Python packages
20
  RUN pip3 install --no-cache-dir -r requirements.txt
21
 
22
- # Set environment variables to avoid permission issues
23
- ENV HOME=/app
24
  ENV STREAMLIT_HOME=/app/.streamlit
25
 
26
- # Create .streamlit config folder to avoid PermissionError
27
- RUN mkdir -p /app/.streamlit
28
-
29
- # Optional: add a basic credentials/config file to suppress warnings
30
- RUN echo "\
31
- [server]\n\
32
- headless = true\n\
33
- enableCORS = false\n\
34
- \n\
35
- " > /app/.streamlit/config.toml
36
-
37
  # Expose Streamlit port
38
  EXPOSE 8501
39
 
40
- # Add healthcheck
41
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
42
 
43
- # Run the Streamlit app
44
  ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  curl \
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Create .streamlit directory with write permissions
14
+ RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
15
+
16
+ # Copy app source
17
  COPY requirements.txt ./
18
  COPY src/ ./src/
19
+ COPY src/ .
20
 
21
+ # Install Python dependencies
22
  RUN pip3 install --no-cache-dir -r requirements.txt
23
 
24
+ # Set environment variable to avoid permission issue with matplotlib and Streamlit
25
+ ENV MPLCONFIGDIR=/tmp
26
  ENV STREAMLIT_HOME=/app/.streamlit
27
 
 
 
 
 
 
 
 
 
 
 
 
28
  # Expose Streamlit port
29
  EXPOSE 8501
30
 
31
+ # Healthcheck
32
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
33
 
34
+ # Entry point to run Streamlit app
35
  ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
Fish Classification System Documentation.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b41a81a83c52d3468556870e076d42105472479e3389e3fd8a1e803e74b0916
3
+ size 440939
dataset-link.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ https://huggingface.co/datasets/rhazeljay/fish-dataset
2
+
3
+ credits to: https://www.kaggle.com/datasets/markdaniellampa/fish-dataset/code
system-video-presentation.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ https://drive.google.com/drive/folders/10fgbLHZMX7cwFdKj9ScvA0iRP8TxgPK-?usp=drive_link