mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Dockerfile updated.
This commit is contained in:
parent
46c05aa49f
commit
98dc08cba9
36
Dockerfile
36
Dockerfile
@ -7,17 +7,19 @@ WORKDIR /src
|
|||||||
#
|
#
|
||||||
# install dependencies
|
# install dependencies
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN set -eux; apt-get update; \
|
RUN set -eux; \
|
||||||
apt-get install -y --no-install-recommends git cmake make libx11-dev libxrandr-dev libxtst-dev libgtk-3-dev \
|
apt-get update; \
|
||||||
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly; \
|
apt-get install -y --no-install-recommends \
|
||||||
|
libx11-dev libxrandr-dev libxtst-dev libgtk-3-dev \
|
||||||
|
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
||||||
|
git cmake make; \
|
||||||
#
|
#
|
||||||
# install libclipboard
|
# install libclipboard
|
||||||
set -eux; \
|
|
||||||
cd /tmp; \
|
cd /tmp; \
|
||||||
git clone https://github.com/jtanx/libclipboard; \
|
git clone https://github.com/jtanx/libclipboard; \
|
||||||
cd libclipboard; \
|
cd libclipboard; \
|
||||||
cmake .; \
|
cmake .; \
|
||||||
make -j4; \
|
make -j`nproc`; \
|
||||||
make install; \
|
make install; \
|
||||||
rm -rf /tmp/libclipboard; \
|
rm -rf /tmp/libclipboard; \
|
||||||
#
|
#
|
||||||
@ -44,14 +46,20 @@ ARG USER_GID=$USER_UID
|
|||||||
#
|
#
|
||||||
# install dependencies
|
# install dependencies
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
RUN set -eux; apt-get update; \
|
RUN set -eux; \
|
||||||
apt-get install -y --no-install-recommends wget ca-certificates supervisor; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends pulseaudio dbus-x11 xserver-xorg-video-dummy xserver-xorg-input-void; \
|
apt-get install -y --no-install-recommends \
|
||||||
apt-get install -y --no-install-recommends libcairo2 libxcb1 libxrandr2 libxv1 libopus0 libvpx5; \
|
wget ca-certificates supervisor \
|
||||||
#
|
pulseaudio dbus-x11 xserver-xorg-video-dummy xserver-xorg-input-void \
|
||||||
# gst
|
libcairo2 libxcb1 libxrandr2 libxv1 libopus0 libvpx5 \
|
||||||
apt-get install -y --no-install-recommends libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
#
|
||||||
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-pulseaudio; \
|
# file chooser handler
|
||||||
|
xdotool \
|
||||||
|
#
|
||||||
|
# gst
|
||||||
|
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
|
||||||
|
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly \
|
||||||
|
gstreamer1.0-pulseaudio; \
|
||||||
#
|
#
|
||||||
# create a non-root user
|
# create a non-root user
|
||||||
groupadd --gid $USER_GID $USERNAME; \
|
groupadd --gid $USER_GID $USERNAME; \
|
||||||
@ -88,7 +96,7 @@ COPY runtime/xorg.conf /etc/neko/xorg.conf
|
|||||||
|
|
||||||
#
|
#
|
||||||
# copy runtime folders
|
# copy runtime folders
|
||||||
COPY runtime/icon-theme /home/neko/.icons/default
|
COPY runtime/icon-theme /home/$USERNAME/.icons/default
|
||||||
|
|
||||||
#
|
#
|
||||||
# set default envs
|
# set default envs
|
||||||
|
Loading…
Reference in New Issue
Block a user