Rohan Kataria commited on
Commit
ae21767
·
1 Parent(s): f143a79

added chatollama and ollama_embedding

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .history/.streamlit/config_20240310222951.toml +0 -0
  2. .history/.streamlit/config_20240310223008.toml +0 -0
  3. .history/Dockerfile_20240310012154 +0 -22
  4. .history/Dockerfile_20240310012228 +0 -19
  5. .history/Dockerfile_20240310014704 +0 -37
  6. .history/Dockerfile_20240310014908 +0 -44
  7. .history/Dockerfile_20240310014955 +0 -48
  8. .history/Dockerfile_20240310015011 +0 -42
  9. .history/Dockerfile_20240310015012 +0 -42
  10. .history/Dockerfile_20240310015021 +0 -42
  11. .history/Dockerfile_20240310121246 +0 -19
  12. .history/Dockerfile_20240310121443 +0 -25
  13. .history/Dockerfile_20240310121634 +0 -25
  14. .history/Dockerfile_20240310121931 +0 -25
  15. .history/Dockerfile_20240310121948 +0 -25
  16. .history/Dockerfile_20240310122013 +0 -25
  17. .history/Dockerfile_20240310122017 +0 -25
  18. .history/Dockerfile_20240310122018 +0 -25
  19. .history/Dockerfile_20240310122020 +0 -25
  20. .history/Dockerfile_20240310122058 +0 -25
  21. .history/Dockerfile_20240310122106 +0 -25
  22. .history/Dockerfile_20240310122300 +0 -25
  23. .history/Dockerfile_20240310122456 +0 -25
  24. .history/Dockerfile_20240310122851 +0 -47
  25. .history/Dockerfile_20240310123010 +0 -36
  26. .history/Dockerfile_20240310123131 +0 -36
  27. .history/Dockerfile_20240310123224 +0 -36
  28. .history/Dockerfile_20240310123319 +0 -36
  29. .history/Dockerfile_20240310123825 +0 -36
  30. .history/Dockerfile_20240310123836 +0 -36
  31. .history/Dockerfile_20240310124558 +0 -36
  32. .history/Dockerfile_20240310124839 +0 -20
  33. .history/Dockerfile_20240310125002 +0 -20
  34. .history/Dockerfile_20240310125005 +0 -20
  35. .history/Dockerfile_20240310125425 +0 -20
  36. .history/Dockerfile_20240310125557 +0 -20
  37. .history/Dockerfile_20240310125612 +0 -20
  38. .history/Dockerfile_20240310130057 +0 -23
  39. .history/Dockerfile_20240310130108 +0 -23
  40. .history/Dockerfile_20240310130420 +0 -23
  41. .history/Dockerfile_20240310130429 +0 -22
  42. .history/Dockerfile_20240310203811 +0 -22
  43. .history/Dockerfile_20240310204031 +0 -44
  44. .history/Dockerfile_20240310204542 +0 -45
  45. .history/Dockerfile_20240310210059 +0 -91
  46. .history/Dockerfile_20240310210143 +0 -91
  47. .history/Dockerfile_20240310210457 +0 -92
  48. .history/Dockerfile_20240310210618 +0 -93
  49. .history/Dockerfile_20240310211133 +0 -114
  50. .history/Dockerfile_20240310211707 +0 -123
.history/.streamlit/config_20240310222951.toml DELETED
File without changes
.history/.streamlit/config_20240310223008.toml DELETED
File without changes
.history/Dockerfile_20240310012154 DELETED
@@ -1,22 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set the working directory in the container
5
- WORKDIR /usr/src/app
6
-
7
- # Copy the current directory contents into the container at /usr/src/app
8
- COPY requirements.txt ./
9
- COPY app.py ./
10
- COPY src ./src
11
-
12
- # Install any needed packages specified in requirements.txt
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Make port 8501 available to the world outside this container
16
- EXPOSE 8501
17
-
18
- # Define environment variable
19
- ENV NAME Chat-w-git
20
-
21
- # Run app.py when the container launches
22
- CMD ["streamlit", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310012228 DELETED
@@ -1,19 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set the working directory in the container
5
- WORKDIR /usr/src/app
6
-
7
- # Copy the current directory contents into the container at /usr/src/app
8
- COPY requirements.txt ./
9
- COPY app.py ./
10
- COPY src ./src
11
-
12
- # Install any needed packages specified in requirements.txt
13
- RUN pip install --no-cache-dir -r requirements.txt
14
-
15
- # Make port 8501 available to the world outside this container
16
- EXPOSE 8501
17
-
18
- # Run app.py when the container launches
19
- CMD ["streamlit", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310014704 DELETED
@@ -1,37 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create app directory
5
- WORKDIR /app
6
-
7
- # Copy the Python requirements file and system packages list
8
- COPY ./requirements.txt /app/requirements.txt
9
-
10
- # Install system dependencies
11
- RUN apt-get update && apt-get install -y --no-install-recommends \
12
- build-essential \
13
- libgomp1 \
14
- && rm -rf /var/lib/apt/lists/*
15
-
16
- # Install Python dependencies
17
- RUN pip install --upgrade pip setuptools wheel && \
18
- pip install --no-cache-dir -r /app/requirements.txt
19
-
20
- # Create a non-root user
21
- RUN useradd -m -u 1000 user
22
- USER user
23
- ENV HOME /home/user
24
- ENV PATH $HOME/.local/bin:$PATH
25
-
26
- # Copy the application to the user's home directory
27
- WORKDIR $HOME
28
- COPY --chown=user:user . $HOME/app
29
-
30
- # Set the working directory to the app directory
31
- WORKDIR $HOME/app
32
-
33
- # Expose the Streamlit port
34
- EXPOSE 8501
35
-
36
- # Run the Streamlit application with additional configurations for cloud deployment
37
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--server.fileWatcherType=none"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310014908 DELETED
@@ -1,44 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- # If you have system dependencies listed in a packages.txt file, uncomment the next line
10
- # COPY ./packages.txt /app/packages.txt
11
-
12
- # Install system dependencies
13
- # If you're using packages.txt, uncomment the following RUN command and remove the subsequent one
14
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
15
- RUN apt-get update && apt-get install -y \
16
- build-essential \
17
- libgomp1 \
18
- && rm -rf /var/lib/apt/lists/*
19
-
20
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
21
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
22
-
23
- # Create a non-root user and switch to it
24
- RUN useradd -m user
25
- USER user
26
- ENV HOME /home/user
27
- ENV PATH $HOME/.local/bin:$PATH
28
-
29
- # Copy the application source code to the container (as the non-root user)
30
- COPY --chown=user:user . $HOME/app
31
-
32
- # Set the working directory to the app directory
33
- WORKDIR $HOME/app
34
-
35
- # Expose the port the app runs on
36
- EXPOSE 8501
37
-
38
- # Define the command to run the app
39
- CMD streamlit run app.py \
40
- --server.headless true \
41
- --server.address 0.0.0.0 \
42
- --server.enableCORS false \
43
- --server.enableXsrfProtection false \
44
- --server.fileWatcherType none
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310014955 DELETED
@@ -1,48 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
-
13
- # If you have system dependencies listed in a packages.txt file, uncomment the next line
14
- # COPY ./packages.txt /app/packages.txt
15
-
16
- # Install system dependencies
17
- # If you're using packages.txt, uncomment the following RUN command and remove the subsequent one
18
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
19
- RUN apt-get update && apt-get install -y \
20
- build-essential \
21
- libgomp1 \
22
- && rm -rf /var/lib/apt/lists/*
23
-
24
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
25
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
26
-
27
- # Create a non-root user and switch to it
28
- RUN useradd -m user
29
- USER user
30
- ENV HOME /home/user
31
- ENV PATH $HOME/.local/bin:$PATH
32
-
33
- # Copy the application source code to the container (as the non-root user)
34
- COPY --chown=user:user . $HOME/app
35
-
36
- # Set the working directory to the app directory
37
- WORKDIR $HOME/app
38
-
39
- # Expose the port the app runs on
40
- EXPOSE 8501
41
-
42
- # Define the command to run the app
43
- CMD streamlit run app.py \
44
- --server.headless true \
45
- --server.address 0.0.0.0 \
46
- --server.enableCORS false \
47
- --server.enableXsrfProtection false \
48
- --server.fileWatcherType none
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310015011 DELETED
@@ -1,42 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Create a non-root user and switch to it
22
- RUN useradd -m user
23
- USER user
24
- ENV HOME /home/user
25
- ENV PATH $HOME/.local/bin:$PATH
26
-
27
- # Copy the application source code to the container (as the non-root user)
28
- COPY --chown=user:user . $HOME/app
29
-
30
- # Set the working directory to the app directory
31
- WORKDIR $HOME/app
32
-
33
- # Expose the port the app runs on
34
- EXPOSE 8501
35
-
36
- # Define the command to run the app
37
- CMD streamlit run app.py \
38
- --server.headless true \
39
- --server.address 0.0.0.0 \
40
- --server.enableCORS false \
41
- --server.enableXsrfProtection false \
42
- --server.fileWatcherType none
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310015012 DELETED
@@ -1,42 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Create a non-root user and switch to it
22
- RUN useradd -m user
23
- USER user
24
- ENV HOME /home/user
25
- ENV PATH $HOME/.local/bin:$PATH
26
-
27
- # Copy the application source code to the container (as the non-root user)
28
- COPY --chown=user:user . $HOME/app
29
-
30
- # Set the working directory to the app directory
31
- WORKDIR $HOME/app
32
-
33
- # Expose the port the app runs on
34
- EXPOSE 8501
35
-
36
- # Define the command to run the app
37
- CMD streamlit run app.py \
38
- --server.headless true \
39
- --server.address 0.0.0.0 \
40
- --server.enableCORS false \
41
- --server.enableXsrfProtection false \
42
- --server.fileWatcherType none
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310015021 DELETED
@@ -1,42 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Create a non-root user and switch to it
22
- RUN useradd -m user
23
- USER user
24
- ENV HOME /home/user
25
- ENV PATH $HOME/.local/bin:$PATH
26
-
27
- # Copy the application source code to the container (as the non-root user)
28
- COPY --chown=user:user . $HOME/app
29
-
30
- # Set the working directory to the app directory
31
- WORKDIR $HOME/app
32
-
33
- # Expose the port the app runs on
34
- EXPOSE 8501
35
-
36
- # Define the command to run the app
37
- CMD streamlit run app.py \
38
- --server.headless true \
39
- --server.address 0.0.0.0 \
40
- --server.enableCORS false \
41
- --server.enableXsrfProtection false \
42
- --server.fileWatcherType none
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310121246 DELETED
@@ -1,19 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
13
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
14
-
15
- # Expose the port the app runs on
16
- EXPOSE 8501
17
-
18
- # Define the command to run the app
19
- CMD streamlit run app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310121443 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310121634 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src /app/src
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app/app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310121931 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src/ /app/src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app/app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310121948 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /app
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src/ /app/src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app/app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122013 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app/app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122017 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122018 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122020 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122058 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122106 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /requirements.txt
9
- COPY ./app.py /app.py
10
- COPY ./src/ /src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122300 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src/ /app/src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122456 DELETED
@@ -1,25 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Set a working directory for the application
5
- WORKDIR /
6
-
7
- # Copy the Python and system requirements files to the container
8
- COPY ./requirements.txt /app/requirements.txt
9
- COPY ./app.py /app/app.py
10
- COPY ./src/ /app/src/
11
-
12
- # RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
13
- RUN apt-get update && apt-get install -y \
14
- build-essential \
15
- libgomp1 \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip, setuptools, and wheel, then install Python dependencies
19
- RUN pip install --upgrade pip setuptools wheel && pip install --no-cache-dir -r /app/requirements.txt
20
-
21
- # Expose the port the app runs on
22
- EXPOSE 8501
23
-
24
- # Define the command to run the app
25
- CMD streamlit run /app/app.py --server.address 0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310122851 DELETED
@@ -1,47 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
-
4
- # Set a working directory for copying requirements initially
5
- WORKDIR /app
6
-
7
- # Copy only the requirements file, to cache the pip install step
8
- COPY ./requirements.txt /app/requirements.txt
9
-
10
- # Install Python dependencies
11
- RUN pip install --no-cache-dir -r /app/requirements.txt
12
-
13
- # Copy specific application files to the container
14
- COPY ./app.py /app/app.py
15
- COPY ./src /app/src
16
-
17
- # Create a non-root user 'appuser' with home directory /home/appuser
18
- # No need to specify USER ID unless it's required for your use case
19
- RUN useradd -m appuser
20
-
21
- # Switch to the non-root user
22
- USER appuser
23
-
24
- # Set environment variables for the non-root user
25
- ENV HOME /home/appuser
26
- ENV PATH $HOME/.local/bin:$PATH
27
-
28
- # Set the working directory to the non-root user's home directory
29
- WORKDIR $HOME
30
-
31
- # Create an 'app' directory under the non-root user's home directory and change workdir to it
32
- RUN mkdir app
33
- WORKDIR $HOME/app
34
-
35
- # Copy the application files from host to container, ensuring correct ownership
36
- COPY --chown=appuser:appuser . $HOME/app
37
-
38
- # Since we've already copied app.py and src/ before changing the user,
39
- # ensure they are copied into the correct final directory and with correct ownership
40
- COPY --chown=appuser:appuser /app/app.py $HOME/app/
41
- COPY --chown=appuser:appuser /app/src/ $HOME/app/src/
42
-
43
- # Expose the port the app runs on
44
- EXPOSE 8501
45
-
46
- # Define the command to run the app
47
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123010 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./requirements.txt /app/requirements.txt
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Switch to the non-root user
17
- USER appuser
18
-
19
- # Set environment variables for the non-root user
20
- ENV HOME /home/appuser
21
-
22
- # Set the working directory to the non-root user's home directory
23
- WORKDIR $HOME
24
-
25
- # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- RUN mkdir app
27
- WORKDIR $HOME/app
28
-
29
- # Copy the application files from host to container, ensuring correct ownership
30
- COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123131 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.11-slim
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Switch to the non-root user
17
- USER appuser
18
-
19
- # Set environment variables for the non-root user
20
- ENV HOME /home/appuser
21
-
22
- # Set the working directory to the non-root user's home directory
23
- WORKDIR $HOME
24
-
25
- # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- RUN mkdir app
27
- WORKDIR $HOME/app
28
-
29
- # Copy the application files from host to container, ensuring correct ownership
30
- COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123224 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9-slim
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Switch to the non-root user
17
- USER appuser
18
-
19
- # Set environment variables for the non-root user
20
- ENV HOME /home/appuser
21
-
22
- # Set the working directory to the non-root user's home directory
23
- WORKDIR $HOME
24
-
25
- # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- RUN mkdir app
27
- WORKDIR $HOME/app
28
-
29
- # Copy the application files from host to container, ensuring correct ownership
30
- COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123319 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Switch to the non-root user
17
- USER appuser
18
-
19
- # Set environment variables for the non-root user
20
- ENV HOME /home/appuser
21
-
22
- # Set the working directory to the non-root user's home directory
23
- WORKDIR $HOME
24
-
25
- # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- RUN mkdir app
27
- WORKDIR $HOME/app
28
-
29
- # Copy the application files from host to container, ensuring correct ownership
30
- COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123825 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # # Switch to the non-root user
17
- # USER appuser
18
-
19
- # # Set environment variables for the non-root user
20
- # ENV HOME /home/appuser
21
-
22
- # # Set the working directory to the non-root user's home directory
23
- # WORKDIR $HOME
24
-
25
- # # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- # RUN mkdir app
27
- # WORKDIR $HOME/app
28
-
29
- # # Copy the application files from host to container, ensuring correct ownership
30
- # COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310123836 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # # Switch to the non-root user
17
- # USER appuser
18
-
19
- # # Set environment variables for the non-root user
20
- # ENV HOME /home/appuser
21
-
22
- # # Set the working directory to the non-root user's home directory
23
- # WORKDIR $HOME
24
-
25
- # # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- # RUN mkdir app
27
- # WORKDIR $HOME/app
28
-
29
- # # Copy the application files from host to container, ensuring correct ownership
30
- # COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310124558 DELETED
@@ -1,36 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app/
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # # Switch to the non-root user
17
- # USER appuser
18
-
19
- # # Set environment variables for the non-root user
20
- # ENV HOME /home/appuser
21
-
22
- # # Set the working directory to the non-root user's home directory
23
- # WORKDIR $HOME
24
-
25
- # # Create an 'app' directory under the non-root user's home directory and change workdir to it
26
- # RUN mkdir app
27
- # WORKDIR $HOME/app
28
-
29
- # # Copy the application files from host to container, ensuring correct ownership
30
- # COPY --chown=appuser:appuser ./ $HOME/app/
31
-
32
- # Expose the port the app runs on
33
- EXPOSE 8501
34
-
35
- # Define the command to run the app
36
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=8501"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310124839 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=8501"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310125002 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD streamlit run app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310125005 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD streamlit run app.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310125425 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD python streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310125557 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310125612 DELETED
@@ -1,20 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
-
16
- # Expose the port the app runs on
17
- EXPOSE 8501
18
-
19
- # Define the command to run the app
20
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310130057 DELETED
@@ -1,23 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- RUN pip install "langchain[docarray]"
16
- RUN pip3 install "langchain[docarray]"
17
-
18
-
19
- # Expose the port the app runs on
20
- EXPOSE 8501
21
-
22
- # Define the command to run the app
23
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310130108 DELETED
@@ -1,23 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- RUN pip install "langchain[docarray]"
16
- RUN pip3 install "langchain[docarray]"
17
-
18
-
19
- # Expose the port the app runs on
20
- EXPOSE 8501
21
-
22
- # Define the command to run the app
23
- CMD streamlit run app.py --server.address=0.0.0.0:8501
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310130420 DELETED
@@ -1,23 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- RUN pip install "langchain[docarray]"
16
- RUN pip3 install "langchain[docarray]"
17
-
18
-
19
- # Expose the port the app runs on
20
- EXPOSE 8501
21
-
22
- # Define the command to run the app
23
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310130429 DELETED
@@ -1,22 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- RUN pip install "langchain[docarray]"
16
- RUN pip3 install "langchain[docarray]"
17
-
18
- # Expose the port the app runs on
19
- EXPOSE 8501
20
-
21
- # Define the command to run the app
22
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310203811 DELETED
@@ -1,22 +0,0 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.9
3
-
4
- # Create a non-root user 'appuser' with home directory /home/appuser
5
- RUN useradd -m appuser
6
-
7
- # Set a working directory for copying requirements initially as root
8
- WORKDIR /app
9
-
10
- # Copy only the requirements file, to cache the pip install step
11
- COPY ./ /app
12
-
13
- # Install Python dependencies
14
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- RUN pip install "langchain[docarray]"
16
- RUN pip3 install "langchain[docarray]"
17
-
18
- # Expose the port the app runs on
19
- EXPOSE 8501
20
-
21
- # Define the command to run the app
22
- CMD streamlit run app.py --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310204031 DELETED
@@ -1,44 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- FROM python:3.9-slim
26
-
27
- WORKDIR /app
28
-
29
- RUN apt-get update && apt-get install -y \
30
- build-essential \
31
- curl \
32
- software-properties-common \
33
- git \
34
- && rm -rf /var/lib/apt/lists/*
35
-
36
- COPY ./ /app
37
-
38
- RUN pip3 install -r requirements.txt
39
-
40
- EXPOSE 8501
41
-
42
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
43
-
44
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310204542 DELETED
@@ -1,45 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- FROM python:3.9-slim
26
-
27
- WORKDIR /app
28
-
29
- RUN apt-get update && apt-get install -y \
30
- build-essential \
31
- curl \
32
- software-properties-common \
33
- git \
34
- && rm -rf /var/lib/apt/lists/*
35
-
36
- COPY ./ /app
37
-
38
- RUN pip3 install -r requirements.txt
39
- RUN pip3 install 'langchain[docarray]'
40
-
41
- EXPOSE 8501
42
-
43
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310210059 DELETED
@@ -1,91 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # FROM python:3.8.9
26
-
27
- # WORKDIR /app
28
-
29
- # RUN apt-get update && apt-get install -y \
30
- # build-essential \
31
- # curl \
32
- # software-properties-common \
33
- # git \
34
- # && rm -rf /var/lib/apt/lists/*
35
-
36
- # COPY ./ /app
37
-
38
- # RUN pip3 install -r requirements.txt
39
- # RUN pip3 install 'langchain[docarray]'
40
-
41
- # EXPOSE 8501
42
-
43
- # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # Use Python 3.8.9 as the base image
49
- FROM python:3.8.9
50
-
51
- # Set the working directory in the container
52
- WORKDIR /app
53
-
54
- # Install system dependencies
55
- RUN apt-get update && apt-get install -y \
56
- build-essential \
57
- curl \
58
- software-properties-common \
59
- git \
60
- && rm -rf /var/lib/apt/lists/*
61
-
62
- # Copy the requirements and packages files into the container
63
- COPY ./requirements.txt ./packages.txt /app/
64
-
65
- # Install Python dependencies
66
- RUN pip3 install --no-cache-dir -r requirements.txt
67
- RUN pip3 install 'langchain[docarray]'
68
-
69
- # Create a non-root user to run the application
70
- RUN useradd -m -u 1000 user
71
- USER user
72
-
73
- # Set environment variables for the non-root user
74
- ENV HOME /home/user
75
- ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # Set the working directory to the non-root user's home directory
78
- WORKDIR $HOME
79
-
80
- # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- RUN mkdir app
82
- WORKDIR $HOME/app
83
-
84
- # Copy the rest of the application's code with appropriate ownership
85
- COPY --chown=user:user . $HOME/app
86
-
87
- # Expose the port Streamlit runs on
88
- EXPOSE 8501
89
-
90
- # Set the entry point and default command to run the Streamlit application
91
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310210143 DELETED
@@ -1,91 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # FROM python:3.8.9
26
-
27
- # WORKDIR /app
28
-
29
- # RUN apt-get update && apt-get install -y \
30
- # build-essential \
31
- # curl \
32
- # software-properties-common \
33
- # git \
34
- # && rm -rf /var/lib/apt/lists/*
35
-
36
- # COPY ./ /app
37
-
38
- # RUN pip3 install -r requirements.txt
39
- # RUN pip3 install 'langchain[docarray]'
40
-
41
- # EXPOSE 8501
42
-
43
- # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # Use Python 3.8.9 as the base image
49
- FROM python:3.8.9
50
-
51
- # Set the working directory in the container
52
- WORKDIR /app
53
-
54
- # Install system dependencies
55
- RUN apt-get update && apt-get install -y \
56
- build-essential \
57
- curl \
58
- software-properties-common \
59
- git \
60
- && rm -rf /var/lib/apt/lists/*
61
-
62
- # Copy the requirements and packages files into the container
63
- COPY ./requirements.txt /app/
64
-
65
- # Install Python dependencies
66
- RUN pip3 install --no-cache-dir -r requirements.txt
67
- RUN pip3 install 'langchain[docarray]'
68
-
69
- # Create a non-root user to run the application
70
- RUN useradd -m -u 1000 user
71
- USER user
72
-
73
- # Set environment variables for the non-root user
74
- ENV HOME /home/user
75
- ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # Set the working directory to the non-root user's home directory
78
- WORKDIR $HOME
79
-
80
- # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- RUN mkdir app
82
- WORKDIR $HOME/app
83
-
84
- # Copy the rest of the application's code with appropriate ownership
85
- COPY --chown=user:user . $HOME/app
86
-
87
- # Expose the port Streamlit runs on
88
- EXPOSE 8501
89
-
90
- # Set the entry point and default command to run the Streamlit application
91
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310210457 DELETED
@@ -1,92 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # FROM python:3.8.9
26
-
27
- # WORKDIR /app
28
-
29
- # RUN apt-get update && apt-get install -y \
30
- # build-essential \
31
- # curl \
32
- # software-properties-common \
33
- # git \
34
- # && rm -rf /var/lib/apt/lists/*
35
-
36
- # COPY ./ /app
37
-
38
- # RUN pip3 install -r requirements.txt
39
- # RUN pip3 install 'langchain[docarray]'
40
-
41
- # EXPOSE 8501
42
-
43
- # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # Use Python 3.8.9 as the base image
49
- FROM python:3.8.9
50
-
51
- # Set the working directory in the container
52
- WORKDIR /app
53
-
54
- # Install system dependencies
55
- RUN apt-get update && apt-get install -y \
56
- build-essential \
57
- curl \
58
- software-properties-common \
59
- git \
60
- && rm -rf /var/lib/apt/lists/*
61
-
62
- # Copy the requirements and packages files into the container
63
- COPY ./requirements.txt /app/
64
-
65
- # Install Python dependencies
66
- RUN pip3 install --no-cache-dir -r requirements.txt
67
- RUN pip3 install 'langchain[docarray]'
68
-
69
- # Create a non-root user to run the application
70
- RUN useradd -m -u 1000 user
71
- USER user
72
-
73
- # Set environment variables for the non-root user
74
- ENV HOME /home/user
75
- ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # Set the working directory to the non-root user's home directory
78
- WORKDIR $HOME
79
-
80
- # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- RUN mkdir app
82
- WORKDIR $HOME/app
83
-
84
- # Copy the rest of the application's code with appropriate ownership
85
- COPY --chown=user:user . $HOME/app
86
-
87
- # Expose the port Streamlit runs on
88
- EXPOSE 8501
89
- ENV PORT=8501
90
-
91
- # Set the entry point and default command to run the Streamlit application
92
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=$PORT", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310210618 DELETED
@@ -1,93 +0,0 @@
1
- # # Use an official Python runtime as a parent image
2
- # FROM python:3.9
3
-
4
- # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # RUN useradd -m appuser
6
-
7
- # # Set a working directory for copying requirements initially as root
8
- # WORKDIR /app
9
-
10
- # # Copy only the requirements file, to cache the pip install step
11
- # COPY ./ /app
12
-
13
- # # Install Python dependencies
14
- # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # RUN pip install "langchain[docarray]"
16
- # RUN pip3 install "langchain[docarray]"
17
-
18
- # # Expose the port the app runs on
19
- # EXPOSE 8501
20
-
21
- # # Define the command to run the app
22
- # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # FROM python:3.8.9
26
-
27
- # WORKDIR /app
28
-
29
- # RUN apt-get update && apt-get install -y \
30
- # build-essential \
31
- # curl \
32
- # software-properties-common \
33
- # git \
34
- # && rm -rf /var/lib/apt/lists/*
35
-
36
- # COPY ./ /app
37
-
38
- # RUN pip3 install -r requirements.txt
39
- # RUN pip3 install 'langchain[docarray]'
40
-
41
- # EXPOSE 8501
42
-
43
- # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # Use Python 3.8.9 as the base image
49
- FROM python:3.8.9
50
-
51
- # Set the working directory in the container
52
- WORKDIR /app
53
-
54
- # Install system dependencies
55
- RUN apt-get update && apt-get install -y \
56
- build-essential \
57
- curl \
58
- software-properties-common \
59
- git \
60
- && rm -rf /var/lib/apt/lists/*
61
-
62
- # Copy the requirements and packages files into the container
63
- COPY ./requirements.txt /app/
64
-
65
- # Install Python dependencies
66
- RUN pip3 install --no-cache-dir -r requirements.txt
67
- RUN pip3 install 'langchain[docarray]'
68
-
69
- # Create a non-root user to run the application
70
- RUN useradd -m -u 1000 user
71
- USER user
72
-
73
- # Set environment variables for the non-root user
74
- ENV HOME /home/user
75
- ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # Set the working directory to the non-root user's home directory
78
- WORKDIR $HOME
79
-
80
- # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- RUN mkdir app
82
- WORKDIR $HOME/app
83
-
84
- # Copy the rest of the application's code with appropriate ownership
85
- COPY --chown=user:user . $HOME/app
86
-
87
- # Expose the port Streamlit runs on
88
- EXPOSE 8501
89
- ENV PORT=8501
90
-
91
- # Set the entry point and default command to run the Streamlit application
92
- # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=$PORT", "--server.address=0.0.0.0"]
93
- CMD streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310211133 DELETED
@@ -1,114 +0,0 @@
1
- # # # Use an official Python runtime as a parent image
2
- # # FROM python:3.9
3
-
4
- # # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # # RUN useradd -m appuser
6
-
7
- # # # Set a working directory for copying requirements initially as root
8
- # # WORKDIR /app
9
-
10
- # # # Copy only the requirements file, to cache the pip install step
11
- # # COPY ./ /app
12
-
13
- # # # Install Python dependencies
14
- # # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # # RUN pip install "langchain[docarray]"
16
- # # RUN pip3 install "langchain[docarray]"
17
-
18
- # # # Expose the port the app runs on
19
- # # EXPOSE 8501
20
-
21
- # # # Define the command to run the app
22
- # # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # # FROM python:3.8.9
26
-
27
- # # WORKDIR /app
28
-
29
- # # RUN apt-get update && apt-get install -y \
30
- # # build-essential \
31
- # # curl \
32
- # # software-properties-common \
33
- # # git \
34
- # # && rm -rf /var/lib/apt/lists/*
35
-
36
- # # COPY ./ /app
37
-
38
- # # RUN pip3 install -r requirements.txt
39
- # # RUN pip3 install 'langchain[docarray]'
40
-
41
- # # EXPOSE 8501
42
-
43
- # # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # # Use Python 3.8.9 as the base image
49
- # FROM python:3.8.9
50
-
51
- # # Set the working directory in the container
52
- # WORKDIR /app
53
-
54
- # # Install system dependencies
55
- # RUN apt-get update && apt-get install -y \
56
- # build-essential \
57
- # curl \
58
- # software-properties-common \
59
- # git \
60
- # && rm -rf /var/lib/apt/lists/*
61
-
62
- # # Copy the requirements and packages files into the container
63
- # COPY ./requirements.txt /app/
64
-
65
- # # Install Python dependencies
66
- # RUN pip3 install --no-cache-dir -r requirements.txt
67
- # RUN pip3 install 'langchain[docarray]'
68
-
69
- # # Create a non-root user to run the application
70
- # RUN useradd -m -u 1000 user
71
- # USER user
72
-
73
- # # Set environment variables for the non-root user
74
- # ENV HOME /home/user
75
- # ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # # Set the working directory to the non-root user's home directory
78
- # WORKDIR $HOME
79
-
80
- # # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- # RUN mkdir app
82
- # WORKDIR $HOME/app
83
-
84
- # # Copy the rest of the application's code with appropriate ownership
85
- # COPY --chown=user:user . $HOME/app
86
-
87
- # # Expose the port Streamlit runs on
88
- # EXPOSE 8501
89
- # ENV PORT=8501
90
-
91
- # # Set the entry point and default command to run the Streamlit application
92
- # # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=$PORT", "--server.address=0.0.0.0"]
93
- # CMD streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
94
-
95
- FROM python:3.9-slim
96
-
97
- WORKDIR /app
98
-
99
- RUN apt-get update && apt-get install -y \
100
- build-essential \
101
- curl \
102
- software-properties-common \
103
- git \
104
- && rm -rf /var/lib/apt/lists/*
105
-
106
- RUN git clone https://github.com/streamlit/streamlit-example.git .
107
-
108
- RUN pip3 install -r requirements.txt
109
-
110
- EXPOSE 8501
111
-
112
- HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
113
-
114
- ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.history/Dockerfile_20240310211707 DELETED
@@ -1,123 +0,0 @@
1
- # # # Use an official Python runtime as a parent image
2
- # # FROM python:3.9
3
-
4
- # # # Create a non-root user 'appuser' with home directory /home/appuser
5
- # # RUN useradd -m appuser
6
-
7
- # # # Set a working directory for copying requirements initially as root
8
- # # WORKDIR /app
9
-
10
- # # # Copy only the requirements file, to cache the pip install step
11
- # # COPY ./ /app
12
-
13
- # # # Install Python dependencies
14
- # # RUN pip3 install --no-cache-dir -r /app/requirements.txt
15
- # # RUN pip install "langchain[docarray]"
16
- # # RUN pip3 install "langchain[docarray]"
17
-
18
- # # # Expose the port the app runs on
19
- # # EXPOSE 8501
20
-
21
- # # # Define the command to run the app
22
- # # CMD streamlit run app.py --server.address=0.0.0.0
23
-
24
-
25
- # # FROM python:3.8.9
26
-
27
- # # WORKDIR /app
28
-
29
- # # RUN apt-get update && apt-get install -y \
30
- # # build-essential \
31
- # # curl \
32
- # # software-properties-common \
33
- # # git \
34
- # # && rm -rf /var/lib/apt/lists/*
35
-
36
- # # COPY ./ /app
37
-
38
- # # RUN pip3 install -r requirements.txt
39
- # # RUN pip3 install 'langchain[docarray]'
40
-
41
- # # EXPOSE 8501
42
-
43
- # # HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
44
-
45
- # # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
46
-
47
-
48
- # # Use Python 3.8.9 as the base image
49
- # FROM python:3.8.9
50
-
51
- # # Set the working directory in the container
52
- # WORKDIR /app
53
-
54
- # # Install system dependencies
55
- # RUN apt-get update && apt-get install -y \
56
- # build-essential \
57
- # curl \
58
- # software-properties-common \
59
- # git \
60
- # && rm -rf /var/lib/apt/lists/*
61
-
62
- # # Copy the requirements and packages files into the container
63
- # COPY ./requirements.txt /app/
64
-
65
- # # Install Python dependencies
66
- # RUN pip3 install --no-cache-dir -r requirements.txt
67
- # RUN pip3 install 'langchain[docarray]'
68
-
69
- # # Create a non-root user to run the application
70
- # RUN useradd -m -u 1000 user
71
- # USER user
72
-
73
- # # Set environment variables for the non-root user
74
- # ENV HOME /home/user
75
- # ENV PATH $HOME/.local/bin:$PATH
76
-
77
- # # Set the working directory to the non-root user's home directory
78
- # WORKDIR $HOME
79
-
80
- # # Create an 'app' directory under the non-root user's home and set it as the working directory
81
- # RUN mkdir app
82
- # WORKDIR $HOME/app
83
-
84
- # # Copy the rest of the application's code with appropriate ownership
85
- # COPY --chown=user:user . $HOME/app
86
-
87
- # # Expose the port Streamlit runs on
88
- # EXPOSE 8501
89
- # ENV PORT=8501
90
-
91
- # # Set the entry point and default command to run the Streamlit application
92
- # # ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=$PORT", "--server.address=0.0.0.0"]
93
- # CMD streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
94
-
95
- # This sets up the container with Python 3.10 installed.
96
- FROM python:3.10-slim
97
-
98
- # This copies everything in your current directory to the /app directory in the container.
99
- COPY . /app
100
-
101
- # This sets the /app directory as the working directory for any RUN, CMD, ENTRYPOINT, or COPY instructions that follow.
102
- WORKDIR /app
103
-
104
- # This runs pip install for all the packages listed in your requirements.txt file.
105
- RUN pip install -r requirements.txt
106
-
107
- # This tells Docker to listen on port 80 at runtime. Port 80 is the standard port for HTTP.
108
- EXPOSE 80
109
-
110
- # This command creates a .streamlit directory in the home directory of the container.
111
- RUN mkdir ~/.streamlit
112
-
113
- # This copies your Streamlit configuration file into the .streamlit directory you just created.
114
- COPY config.toml ~/.streamlit/config.toml
115
-
116
- # Similar to the previous step, this copies your Streamlit credentials file into the .streamlit directory.
117
- # COPY credentials.toml ~/.streamlit/credentials.toml
118
-
119
- # This sets the default command for the container to run the app with Streamlit.
120
- ENTRYPOINT ["streamlit", "run"]
121
-
122
- # This command tells Streamlit to run your app.py script when the container starts.
123
- CMD ["app.py"]