mbarnig commited on
Commit
9c7b360
1 Parent(s): d721821

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -35
Dockerfile CHANGED
@@ -1,52 +1,21 @@
1
  # Node base image
2
- FROM node:20
3
 
4
- # Switch to the "node" user
5
- USER node
6
-
7
- # Set home to the user's home directory
8
- ENV HOME=/home/node \
9
- PATH=/home/node/.local/bin:$PATH
10
-
11
- # Set the working directory to the user's home directory
12
  WORKDIR $HOME/app
13
 
14
- # Moving file to user's home directory
15
- ADD . $HOME/app
16
-
17
- # Copy the current directory contents into the container at $HOME/app setting the owner to the user
18
- COPY --chown=node . $HOME/app
19
-
20
- # Clone HeyGen Github repository
21
- RUN git clone https://github.com/mbarnig/InteractiveAvatarNextJSDemo.git
22
 
23
  # Show content
24
- RUN pwd && ls
25
-
26
- # change folder
27
- WORKDIR $HOME/app/InteractiveAvatarNextJSDemo
28
  RUN ls -a
29
- # RUN npm run dev
30
- # RUN node app.js
31
 
32
  # Loading Dependencies
33
  RUN npm install
34
 
35
- # RUN npm install -g [email protected]
36
-
37
- # RUN npm audit fix
38
-
39
  RUN npm run dev
40
 
41
  # Expose application's default port
42
  EXPOSE 3000
43
 
44
- # Entry Point
45
- # WORKDIR $HOME/app
46
- # RUN node app.js
47
- # ENTRYPOINT ["nodejs", "./index.mjs"]
48
-
49
  # Command to start the application
50
- CMD ["npm", "run", "dev"]
51
- # CMD ["npm", "run", "build"]
52
- # CMD ["npm", "server.js
 
1
  # Node base image
2
+ FROM node:22-alpine
3
 
 
 
 
 
 
 
 
 
4
  WORKDIR $HOME/app
5
 
6
+ # Clone HeyGen Github repository in app folder
7
+ RUN git clone https://github.com/mbarnig/InteractiveAvatarNextJSDemo.git $HOME/app
 
 
 
 
 
 
8
 
9
  # Show content
 
 
 
 
10
  RUN ls -a
 
 
11
 
12
  # Loading Dependencies
13
  RUN npm install
14
 
 
 
 
 
15
  RUN npm run dev
16
 
17
  # Expose application's default port
18
  EXPOSE 3000
19
 
 
 
 
 
 
20
  # Command to start the application
21
+ CMD ["npm", "run", "dev"]