Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (65 loc) Β· 2.06 KB
/
Copy pathDockerfile
File metadata and controls
76 lines (65 loc) Β· 2.06 KB
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
68
69
70
71
72
73
74
75
76
FROM lscr.io/linuxserver/webtop:ubuntu-xfce
# Set metadata
LABEL org.opencontainers.image.title="Autopilot"
LABEL org.opencontainers.image.description="AI-powered research and automation platform"
LABEL org.opencontainers.image.version="1.0.0"
# Install required dependencies
RUN apt-get update && apt-get install -y \
curl \
wget \
unzip \
chromium-browser \
fonts-liberation \
libasound2t64 \
libatk-bridge2.0-0 \
libdrm2 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libxss1 \
libnss3 \
&& rm -rf /var/lib/apt/lists/*
# Create application directory
RUN mkdir -p /app/terminator
# Copy the compiled binary and assets
COPY ./dist/terminator-linux /app/terminator/terminator
COPY ./dist/public /app/terminator/public
# COPY ./.env.example /app/terminator/.env
# Make the binary executable
RUN chmod +x /app/terminator/terminator
# Set up environment for Chromium and Autopilot
ENV CHROME_BIN=/usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PORT=8080
ENV CUSTOM_PORT=6901
# Set working directory
WORKDIR /app/terminator
# Create a startup script
RUN echo '#!/bin/bash\n\
echo "Starting Autopilot..."\n\
echo "Autopilot will be available at http://localhost:9005 (container port 8080)"\n\
echo "Configure your AI provider by editing /app/terminator/.env"\n\
echo ""\n\
cd /app/terminator\n\
export PORT=8080\n\
./terminator\n\
' > /app/start-terminator.sh && chmod +x /app/start-terminator.sh
# Create desktop shortcut
RUN mkdir -p /config/Desktop && \
echo '[Desktop Entry]\n\
Version=1.0\n\
Type=Application\n\
Name=Autopilot\n\
Comment=AI-powered research and automation platform\n\
Exec=/app/start-terminator.sh\n\
Icon=applications-internet\n\
Terminal=true\n\
StartupNotify=false\n\
Categories=Network;WebBrowser;\n\
' > /config/Desktop/terminator.desktop && \
chmod +x /config/Desktop/terminator.desktop
EXPOSE 6901
# The base image will handle the desktop environment
# Users can manually start Autopilot from the desktop or terminal