This repository was archived by the owner on Apr 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile
More file actions
64 lines (55 loc) · 1.66 KB
/
dockerfile
File metadata and controls
64 lines (55 loc) · 1.66 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
# Base image
FROM ubuntu:latest
# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive \
DISPLAY=:0 \
VNC_RESOLUTION=1024x768 \
HOME=/home/peer2profit \
P2P_EMAIL=""
# Update and install necessary packages
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -qqy \
xvfb \
x11vnc \
# x11-apps \
# x11-utils \
# x11-xserver-utils \
novnc \
tini \
supervisor \
bash \
fluxbox \
wget \
curl \
procps \
# net-tools \
# util-linux \
# strace \
websockify && \
ln -s /usr/share/novnc/vnc_lite.html /usr/share/novnc/index.html && \
wget "https://updates.peer2profit.app/peer2profit_0.48_amd64.deb" -O /tmp/install.deb && \
dpkg -i /tmp/install.deb || apt-get -y -f install && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/install.deb
# Copy entrypoint script and configuration files
COPY entrypoint.sh /entrypoint.sh
COPY supervisord.conf /etc/supervisord.conf
# Make scripts executable
RUN chmod +x /entrypoint.sh
# Create config directories
RUN mkdir -p /config/xdg/config/
RUN mkdir -p /root/.config
# Create peer2profit user and group, and set permissions
RUN groupadd -g 999 peer2profit && \
useradd -r -u 999 -g peer2profit peer2profit && \
mkdir -p /home/peer2profit/.vnc && \
chown -R peer2profit:peer2profit /home/peer2profit
# Switch to peer2profit user
#USER peer2profit
# Expose VNC and noVNC ports
EXPOSE 5901 6901
# Set tini as the entrypoint and the custom script as the command
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["/entrypoint.sh"]