-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (25 loc) · 857 Bytes
/
Dockerfile
File metadata and controls
34 lines (25 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use Ubuntu as base image
FROM ubuntu:22.04
# Set environment variables to prevent interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
# Set which visual to display
ENV VISUAL=codeblocks
# Install Java and other dependencies
RUN apt-get update && \
apt-get install -y \
openjdk-17-jdk \
wget \
xvfb \
&& rm -rf /var/lib/apt/lists/*
# Set JAVA_HOME
ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
# Download and install Processing
RUN wget https://github.com/processing/processing4/releases/download/processing-1293-4.3/processing-4.3-linux-x64.tgz && \
tar -xzf processing-4.3-linux-x64.tgz && \
mv processing-4.3 /opt/processing && \
rm processing-4.3-linux-x64.tgz
# Add Processing to PATH
ENV PATH="/opt/processing:${PATH}"
COPY . /viz
COPY docker_entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]