deepak191z commited on
Commit
91d6d10
·
verified ·
1 Parent(s): abaa7f6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -3
Dockerfile CHANGED
@@ -1,8 +1,24 @@
1
- FROM docker.io/leafmoes/ddg-chat:latest
2
- RUN npm ci --only=production
3
 
4
- COPY . .
 
 
5
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  EXPOSE 8787
 
7
 
 
8
  CMD ["npm", "start"]
 
1
+ # Use a base Alpine image
2
+ FROM alpine:3.18
3
 
4
+ # Update package list and install Node.js, npm, and git
5
+ RUN apk update && \
6
+ apk add --no-cache nodejs npm git
7
 
8
+ # Set the working directory inside the container
9
+ WORKDIR /app
10
+
11
+ # Clone the repository into the working directory
12
+ RUN git clone https://github.com/leafmoes/DDG-Chat.git .
13
+
14
+ # Install npm dependencies
15
+ RUN npm install
16
+
17
+ # Expose ports:
18
+ # - 8787 as the default port
19
+ # - 7860 for Hugging Face
20
  EXPOSE 8787
21
+ EXPOSE 7860
22
 
23
+ # Start the application
24
  CMD ["npm", "start"]