vikarshana commited on
Commit
05e245d
·
verified ·
1 Parent(s): 07217ad

Upload 6 files

Browse files
Files changed (6) hide show
  1. .gitattributes +3 -0
  2. Dockerfile +41 -0
  3. README.md +8 -8
  4. auth.json +14 -0
  5. docker-compose.yml +10 -0
  6. start.sh +2 -0
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+
37
+
38
+
Dockerfile ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #Waddapak
2
+ FROM node:lts-buster
3
+
4
+ USER root
5
+ # Create app directory and set permissions 🙂😮‍💨
6
+ RUN mkdir -p /app && chown -R node:node /app
7
+
8
+ # Install necessary dependencies
9
+ RUN apt-get update && apt-get install -y \
10
+ git \
11
+ ffmpeg \
12
+ imagemagick \
13
+ webp \
14
+ && apt-get clean \
15
+ && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Set the working directory
18
+ WORKDIR /app
19
+
20
+ # Clone the private GitHub repository using the GitHub token from Docker BuildKit secrets
21
+ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
22
+ --mount=type=secret,id=GITHUB_TOKEN,required=true \
23
+ git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/$(cat /run/secrets/GITHUB_REPO).git .
24
+
25
+ # Switch to the node user
26
+
27
+ COPY --chown=node:node . .
28
+
29
+ RUN mkdir -p /app/lib/database && chown -R node:node /app/lib
30
+
31
+ # Set permissions for the /app directory to allow writing
32
+ RUN chmod -R 777 /app
33
+
34
+ # Install depends
35
+ RUN npm install node-cache
36
+
37
+ RUN npm install || yarn install
38
+ RUN yarn install --network-concurrency 1
39
+ EXPOSE 7860
40
+ ENV NODE_ENV=production
41
+ CMD ["npm", "start"]
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: Hello World
3
- emoji: 🐢
4
- colorFrom: blue
5
- colorTo: pink
6
  sdk: docker
7
- pinned: false
8
- ---
9
-
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ license: mit
3
+ title: index.js
 
 
4
  sdk: docker
5
+ emoji: 🐨
6
+ colorFrom: pink
7
+ colorTo: gray
8
+ pinned: true
9
+ short_description: Good man
10
+ ---
auth.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ { "email": "rukshan.savinda1030@gmail.com", "password": "q*NnK#Lqg4uN!" },
3
+ { "email": "yasidusudarshana706@gmail.com", "password": "Yasidu@123" },
4
+ { "email": "yasidusudarshana380@gmail.com", "password": "Yasidu@123" },
5
+ { "email": "nbbb15092@gmail.com", "password": "@Asitha2005b" },
6
+ { "email": "hupa2960@gmail.com", "password": "@Asitha2005b" },
7
+ { "email": "pponna41@gmai.com", "password": "@Asitha2005b" },
8
+ { "email": "Asithamdv@gmail.com", "password": "@Asitha2005b" },
9
+ { "email": "mmm009833@gmail.com", "password": "@Asitha2005b" },
10
+ { "email": "ayodyaheroku@gmail.com", "password": "ayo123ayo#" },
11
+ { "email": "ayodyagithub@gmail.com", "password": "ayo123ayo#" },
12
+ { "email": "ayodyavichakshana48@gmail.com", "password": "ayo123ayo#" },
13
+ { "email": "bot1newnew@gmail.com", "password": "ayo123ayo#" }
14
+ ]
docker-compose.yml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+ services:
3
+ backend:
4
+ build: .
5
+ container_name: genux-container
6
+ ports:
7
+ - "7860:7860"
8
+ dns:
9
+ - 8.8.8.8
10
+ restart: unless-stopped
start.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+
2
+ node index.js