JoJosmin commited on
Commit
80c6ad4
1 Parent(s): 3162032

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -25
Dockerfile CHANGED
@@ -1,26 +1,27 @@
1
- # Use Python 3.10
2
- FROM python:3.10-slim
3
-
4
- # Set the working directory in the container
5
- WORKDIR /app
6
-
7
- # Copy the current directory contents into the container at /app
8
- COPY . /app
9
-
10
- # Install system dependencies
11
- RUN apt-get update && apt-get install -y \
12
- build-essential \
13
- curl \
14
- software-properties-common \
15
- git \
16
- && rm -rf /var/lib/apt/lists/*
17
-
18
- # Upgrade pip and install required python packages
19
- RUN pip install --no-cache-dir --upgrade pip
20
- RUN pip install --no-cache-dir -r requirements.txt
21
-
22
- # Make port 8501 available to the world outside this container
23
- EXPOSE 8501
24
-
25
- # Run app.py when the container launches
 
26
  CMD ["streamlit", "run", "app.py"]
 
1
+ # Use Python 3.10
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install system dependencies
11
+ RUN apt-get update && apt-get install -y \
12
+ build-essential \
13
+ curl \
14
+ software-properties-common \
15
+ git \
16
+ libgomp1 \
17
+ && rm -rf /var/lib/apt/lists/*
18
+
19
+ # Upgrade pip and install required python packages
20
+ RUN pip install --no-cache-dir --upgrade pip
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ # Make port 8501 available to the world outside this container
24
+ EXPOSE 8501
25
+
26
+ # Run app.py when the container launches
27
  CMD ["streamlit", "run", "app.py"]