52 lines
1.8 KiB
Docker
52 lines
1.8 KiB
Docker
# Base image
|
|
FROM lscr.io/linuxserver/webtop:ubuntu-mate
|
|
|
|
# Set environment variables to non-interactive (this prevents some prompts)
|
|
ENV DEBIAN_FRONTEND=non-interactive
|
|
# ENV ANDROID_HOME=~/android-sdk
|
|
# ENV PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools
|
|
ENV AVD_SETUP='avdmanager create avd --name MyAndroidEmulator --package "system-images;android-29;default;x86_64"'
|
|
ENV AVD_START='./emulator -avd MyAndroidEmulator'
|
|
|
|
# Update and install required packages and latest Go
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
wget \
|
|
gramps \
|
|
golang-go \
|
|
qemu-kvm \
|
|
libvirt-daemon-system \
|
|
libvirt-clients \
|
|
bridge-utils \
|
|
adb \
|
|
libvulkan1 \
|
|
&& rm -rf /var/lib/apt/lists/* && \
|
|
mkdir -p /root/.ssh/ && \
|
|
chmod 600 /root/.ssh
|
|
# openjdk-11-jdk \
|
|
|
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
|
|
dpkg -i google-chrome-stable_current_amd64.deb
|
|
|
|
# ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64
|
|
# # install android emulator because I don't want an android device.
|
|
WORKDIR /sdk
|
|
RUN wget https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip && \
|
|
unzip commandlinetools-linux-7302050_latest.zip && \
|
|
rm commandlinetools-linux-7302050_latest.zip
|
|
|
|
# # Set environment variables
|
|
# ENV ANDROID_HOME /sdk
|
|
# ENV PATH $PATH:/sdk/cmdline-tools/bin
|
|
# #RUN apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils adb
|
|
# RUN sdkmanager --list && \
|
|
# sdkmanager "platforms;android-29" "system-images;android-29;default;x86_64"
|
|
|
|
|
|
# Ensure Go binaries are in the PATH
|
|
ENV PATH=$PATH:/usr/local/go/bin
|
|
|
|
# Run the bootstrap script
|
|
RUN bash -c "source <(curl -s https://dowerent:SXcLzR4E9Byvp9AYCFZdEoKHuRup4DrG@codeberg.org/Dowerent/bootstrap-scripts/raw/branch/main/strap-webtop.sh) defaults-bootstrap"
|
|
|