provatotale commited on
Commit
aa7d08f
·
verified ·
1 Parent(s): b6cfee0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-alpine
2
+
3
+ # Installa git (necessario su Alpine)
4
+ RUN apk add --no-cache git
5
+
6
+ WORKDIR /app
7
+
8
+ # Clona il repository direttamente nella cartella /app
9
+ RUN git clone https://github.com/provatotale/SelfStream .
10
+
11
+ # Installa le dipendenze
12
+ RUN npm install
13
+
14
+ # HF usa la porta 7860
15
+ ENV PORT=7860
16
+ EXPOSE 7860
17
+
18
+ # Compila l'addon
19
+ RUN npm run build
20
+
21
+ CMD ["npm", "start"]