-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
105 lines (78 loc) · 2.92 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
FROM consol/ubuntu-xfce-vnc:latest
LABEL maintainer Niko "aug3073911@outlook.com"
ENV REFRESHED_AT 2022-10-24
ENV VNC_RESOLUTION 1920x1080
ENV VNC_PW ppllmmoo
# Switch to root user to install pakcages
USER 0
RUN set -x; \
apt update \
&& apt -y upgrade
RUN apt install -y software-properties-common sudo
# JDK
RUN apt -o Dpkg::Options::="--force-overwrite" install -y openjdk-9-jdk
# ASfP
ENV ASFP_FILE=asfp-2023.1.1.19-linux.deb
COPY $ASFP_FILE $HOME/
RUN dpkg -i $HOME/$ASFP_FILE
RUN rm $HOME/$ASFP_FILE
# Android Studio
WORKDIR /opt
RUN wget -O android_studio.tgz \
'https://r3---sn-j5o7dn7s.gvt1.com/edgedl/android/studio/ide-zips/2022.3.1.20/android-studio-2022.3.1.20-linux.tar.gz?cms_redirect=yes&mh=5B&mip=58.248.106.93&mm=28&mn=sn-j5o7dn7s&ms=nvh&mt=1696914999&mv=m&mvi=3&pl=21&rmhost=r4---sn-j5o7dn7s.gvt1.com&shardbypass=sd&smhost=r4---sn-j5o7dn7z.gvt1.com' && \
tar xvf android_studio.tgz && \
rm android_studio.tgz
WORKDIR $HOME
# Apt clean
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
# Back to normal
USER 1000
ENV HOME=/headless
WORKDIR $HOME
# Set workspace size
# RUN echo 'xfconf-query -c xfwm4 -p /general/workspace_count -s 1' >> ~/.bashrc
# Set wallpaper
RUN rm -rf $HOME/.config/bg_sakuli.png
ADD wallpaper_ballon.png $HOME/.config/bg_sakuli.png
# RUN echo 'xfconf-query --channel xfce4-desktop --property /backdrop/screen0/monitorVNC-0/workspace0/last-image --set ~/.config/wallpaper_ballon.jpg' >> ~/.bashrc
USER 0
# Set Theme
ENV THEME_FILE=os-catalina-xfce-4.16.tar.xz
ENV THEME_FILE_EXTRACTED=Os-Catalina-XFCE-4.16
ENV THEME_DIR=.themes
# ENV THEME_SETTINGS=$HOME/.config/xfce4/xfconf/xfce-prechannel-xml/xsettings.xml
ENV THEME_SETTINGS=/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
ENV THEME_OLD=Default
ENV THEME_NEW=Os-Catalina-XFCE-4.16
RUN mkdir $THEME_DIR
COPY $THEME_FILE $HOME/
RUN tar xf $HOME/$THEME_FILE -C $THEME_DIR && rm $HOME/$THEME_FILE
RUN sed -i "s/Greybird/Os-Catalina-XFCE-4.16/" $THEME_SETTINGS
USER 1000
USER 0
# IDEA
ENV IDEA_FILE=ideaIU-2019.3.5-jbr8.tar.gz
COPY $IDEA_FILE $HOME/
RUN tar xzf $HOME/$IDEA_FILE -C /opt/
RUN rm $HOME/$IDEA_FILE
USER 1000
USER 0
RUN add-apt-repository ppa:nilarimogard/webupd8 && apt update \
&& apt -y install android-tools-adb android-tools-fastboot
RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
USER 1000
# LayoutMaster
ENV LAYOUTMASTER_PLUGIN=LayoutMaster-1.0.8.zip
ENV LAYOUTMASTER_SOURCE=LayoutMaster-1.0.0.zip
COPY $LAYOUTMASTER_PLUGIN $HOME
COPY $LAYOUTMASTER_SOURCE $HOME
# Native code
# USER 1000
# WORKDIR $HOME
# RUN wget https://download.jetbrains.com/cpp/CLion-2022.3.tar.gz
# USER 0
# RUN tar xzf CLion-*.tar.gz -C /opt/ \
# && rm CLion-*.tar.gz
# RUN apt update && apt install -y cmake gcc g++ clang
# RUN apt autoremove --purge -y && apt clean && apt autoclean && rm -rf /var/lib/apt/lists/*
# USER 1000