Update Dockerfile
Browse files- Dockerfile +9 -16
Dockerfile
CHANGED
@@ -1,20 +1,13 @@
|
|
1 |
-
|
|
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev xvfb
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
# Copy the app.py script to the working directory
|
11 |
-
COPY app.py .
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
# Set the display environment variable
|
17 |
-
ENV DISPLAY=:99
|
18 |
|
19 |
-
|
20 |
-
CMD Xvfb :99 & python app.py
|
|
|
1 |
+
from python:3.10-slim
|
2 |
+
RUN apt-get update& apt-get install -y openjdk-11-jdk
|
3 |
|
4 |
+
ENV JAVA_HOME /url/lib/jvm/java-11-openjdk-amd64
|
5 |
+
ENV PATH $JAVA_HOME/bin:$PATH
|
|
|
6 |
|
7 |
+
COPY requirements.txt /app/requirements.txt
|
8 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
|
|
|
9 |
|
10 |
+
COPY ./app
|
11 |
+
WORKDIR /app
|
|
|
|
|
|
|
12 |
|
13 |
+
CMD["streamlit","run","app.py"]
|
|