temp2 / Dockerfile
motoe moto
Update Dockerfile
fccd000 verified
# Use the official Ubuntu base image
FROM ubuntu:20.04
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive
ENV NEKO_USER=neko
# Install dependencies
RUN apt-get update && apt-get install -y \
sudo \
curl \
gnupg \
apt-transport-https \
software-properties-common \
wget \
git \
x11vnc \
xvfb \
xfce4 \
xfce4-terminal \
supervisor \
openssh-server \
socat \
novnc \
websockify \
python-numpy \
g++ \
pulseaudio \
libglib2.0-0 \
libnss3 \
libxtst6 \
libxss1 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libdrm2 \
libgbm1 \
libxdamage1 \
libxrandr2 \
libasound2 \
libgtk-3-0 \
libx11-xcb1 \
libxcomposite1 \
libxfixes3 \
dbus-x11
# Create a user for running Neko
RUN useradd -ms /bin/bash ${NEKO_USER} && echo "${NEKO_USER}:${NEKO_USER}" | chpasswd && adduser ${NEKO_USER} sudo
# Switch to the new user
USER ${NEKO_USER}
WORKDIR /home/${NEKO_USER}
# Clone the Neko repository
RUN git clone https://github.com/m1k1o/neko.git
# Install Neko dependencies
WORKDIR /home/${NEKO_USER}/neko
RUN ./scripts/install_deps.sh
# Build Neko
RUN ./scripts/build.sh
# Expose port 8080 for the web interface
EXPOSE 8080
# Start Neko
CMD ["./scripts/start.sh"]