-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
44 lines (37 loc) · 1.1 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
FROM fedora:32
RUN dnf -y update && dnf -y install \
dbus dbus-daemon dbus-glib \
xorg-x11-server-utils \
webkit2gtk3 webkit2gtk3-devel \
mesa-libGL \
adobe-source-code-pro-fonts abattis-cantarell-fonts \
gnome-settings-daemon \
wget tar \
java-11-openjdk \
&& dnf clean all
# Configure broadway
ENV BROADWAY_DISPLAY=:5
ENV BROADWAY_PORT=5000
EXPOSE 5000
ENV GDK_BACKEND=broadway
# Get Eclipse IDE
RUN echo "Downloading Eclipse" && \
cd /root && \
wget -O- "http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/2020-06/R/eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz" | tar xz && \
cd eclipse/ && \
echo $'name=Eclipse IDE\n\
id=org.eclipse.ui.ide.workbench\n\
version=4.16.0' > .eclipseproduct
# Prepare project area
RUN mkdir /projects
VOLUME /projects
RUN for f in "/etc" "/var/run" "/projects" "/root"; do \
chgrp -R 0 ${f} && \
chmod -R g+rwX ${f}; \
done
COPY .fonts.conf /root/
COPY .fonts.conf /
#Useful for debug
#RUN dnf -y install gdb gdb-gdbserver java-14-openjdk-devel
COPY ./init.sh /
ENTRYPOINT [ "/init.sh" ]