Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -3,14 +3,17 @@ FROM python:3.9
|
|
3 |
|
4 |
# Install Java
|
5 |
RUN apt-get update && \
|
6 |
-
apt-get install -y
|
|
|
|
|
|
|
7 |
|
8 |
# Install OpenGL dependencies and Xvfb
|
9 |
RUN apt-get update && \
|
10 |
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev xvfb
|
11 |
|
12 |
# Set the working directory in the container
|
13 |
-
WORKDIR /
|
14 |
|
15 |
# Copy the app.py script to the working directory
|
16 |
COPY app.py .
|
|
|
3 |
|
4 |
# Install Java
|
5 |
RUN apt-get update && \
|
6 |
+
apt-get install -y openjdk-11-jdk
|
7 |
+
|
8 |
+
# Set Java home environment variable
|
9 |
+
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
|
10 |
|
11 |
# Install OpenGL dependencies and Xvfb
|
12 |
RUN apt-get update && \
|
13 |
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev xvfb
|
14 |
|
15 |
# Set the working directory in the container
|
16 |
+
WORKDIR ViMNer/
|
17 |
|
18 |
# Copy the app.py script to the working directory
|
19 |
COPY app.py .
|