forked from cyph/cyph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·46 lines (40 loc) · 1.33 KB
/
Dockerfile
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
FROM debian:bullseye
RUN apt-get -y --allow-downgrades update
RUN apt-get -y --allow-downgrades install \
apt-transport-https \
apt-utils \
ca-certificates \
curl \
gnupg \
lsb-release \
software-properties-common \
sudo
RUN echo 'deb https://deb.nodesource.com/node_18.x bullseye main' \
> /etc/apt/sources.list.d/cyph.list
RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
RUN apt-get -y --allow-downgrades update
RUN apt-get -y --allow-downgrades upgrade
RUN apt-get -y --allow-downgrades install nodejs
RUN echo '\
if [ -f /cyph/commands/.bashrc ] ; then \
source /cyph/commands/.bashrc; \
elif [ -f ~/getlibs/commands/.bashrc ] ; then \
source ~/getlibs/commands/.bashrc; \
fi \
' >> /.bashrc
RUN echo 'gibson ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
RUN useradd -ms /bin/bash gibson
RUN mkdir -p /home/gibson
RUN cp -f /.bashrc /home/gibson/.bashrc
RUN cp -f /.bashrc /root/.bashrc
RUN rm -rf /home/gibson/.gnupg 2> /dev/null
RUN chmod 700 /home/gibson/.bashrc
USER gibson
ENV HOME /home/gibson
#SETUP:RUN mkdir -p ~/getlibs/commands ~/getlibs/native ~/getlibs/shared/lib/js
#SETUP:BASE64_FILES
#SETUP:RUN chmod -R 777 ~/getlibs
#SETUP:RUN ~/getlibs/commands/updatedockerimage.sh
#SETUP:RUN ~/getlibs/commands/getlibs.sh
EXPOSE 9005 9876 31337 42000 42001 42002 42003 42004 44000 45001
CMD /bin/bash