File size: 1,291 Bytes
fccd000
 
572a0db
fccd000
 
 
572a0db
fccd000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
572a0db
fccd000
 
fde1221
fccd000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# 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"]