Spaces:
newtext
/
No application file

yxzx commited on
Commit
a45456b
·
verified ·
1 Parent(s): 2417b56

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +72 -0
Dockerfile ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:12
2
+
3
+
4
+ ENV CHROME_BIN=/usr/bin/google-chrome
5
+ ENV DEBIAN_FRONTEND=noninteractive
6
+
7
+ ENV TZ=Asia/Jakarta
8
+ ENV USERNAME=localhost
9
+ ENV HOSTNAME=Elysia
10
+ ENV BOT_DIR=bot
11
+ ENV PORT=7860
12
+ ENV SETUP_SH=setup.sh
13
+ ENV REPO=ElysiaBOT
14
+ ENV FILE=client.js
15
+
16
+ RUN apt update -y
17
+ RUN apt-get update
18
+ RUN apt-get install -y \
19
+ software-properties-common \
20
+ bash
21
+ RUN apt-get install -y android-sdk-build-tools
22
+
23
+ RUN apt-get install -y \
24
+ git \
25
+ curl \
26
+ wget \
27
+ npm \
28
+ unzip \
29
+ ffmpeg \
30
+ speedtest-cli \
31
+ webp \
32
+ neofetch \
33
+ gawk \
34
+ httrack \
35
+ build-essential
36
+
37
+ RUN curl -Ssf https://pkgx.sh | sh
38
+
39
+ RUN wget -q https://gist.githubusercontent.com/rull05/4116fa9d49a3c02aac7743eb270e7a5e/raw/a1f7bf6d56304384efd2031c11563e9cf6f5da46/apple-font.sh -O ./apple-font.sh
40
+ RUN chmod +x apple-font.sh
41
+ RUN ./apple-font.sh
42
+
43
+ RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
44
+ RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
45
+
46
+ RUN rm -rf /var/lib/apt/lists/*
47
+
48
+ RUN npm install n -g
49
+ RUN n v23
50
+ RUN npm install npm@latest -g
51
+ RUN npm install -g bun@latest
52
+
53
+ RUN useradd -m -u 1000 $USERNAME
54
+
55
+ #END OF ROOT USER#
56
+
57
+ USER $USERNAME
58
+
59
+ ENV HOME=/home/$USERNAME
60
+ ENV PATH=/home/$USERNAME/.local/bin:$PATH
61
+
62
+ ENV WORKDIR=$HOME/$BOT_DIR
63
+
64
+ WORKDIR $WORKDIR
65
+ COPY --chown=$USERNAME . $WORKDIR
66
+ RUN npm install
67
+
68
+ EXPOSE $PORT
69
+ RUN chmod -R 777 $WORKDIR
70
+
71
+ # CMD ["bun", "run", "index.js"]
72
+ CMD ["node", "--experimental-vm-modules", "app.js"]