neko/dev/runtime/Dockerfile

32 lines
1013 B
Docker
Raw Permalink Normal View History

2022-07-14 10:55:56 +12:00
ARG BASE_IMAGE=neko_server_runtime:latest
FROM $BASE_IMAGE
2023-09-11 05:38:07 +12:00
ARG SRC_URL="https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"
2022-07-14 10:55:56 +12:00
#
2023-09-11 05:38:07 +12:00
# install xfce and firefox
2022-07-14 10:55:56 +12:00
RUN set -eux; apt-get update; \
2023-09-11 05:38:07 +12:00
apt-get install -y --no-install-recommends \
dbus-x11 xfce4 xfce4-terminal sudo \
2023-09-11 05:38:07 +12:00
xz-utils bzip2 libgtk-3-0 libdbus-glib-1-2; \
#
# fetch latest firefox release
wget -O /tmp/firefox-setup.tar.bz2 "${SRC_URL}"; \
mkdir /usr/lib/firefox; \
tar -xjf /tmp/firefox-setup.tar.bz2 -C /usr/lib; \
rm -f /tmp/firefox-setup.tar.bz2; \
ln -s /usr/lib/firefox/firefox /usr/bin/firefox; \
2022-07-14 10:55:56 +12:00
#
# add user to sudoers
usermod -aG sudo neko; \
echo "neko:neko" | chpasswd; \
echo "%sudo ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers; \
# clean up
2023-09-11 05:38:07 +12:00
apt-get --purge autoremove -y xz-utils bzip2; \
2022-07-14 10:55:56 +12:00
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
#
# copy configuation files
COPY supervisord.conf /etc/neko/supervisord/xfce.conf