File size: 517 Bytes
91d6d10
 
abaa7f6
91d6d10
 
 
abaa7f6
91d6d10
 
 
 
 
 
 
 
 
 
 
 
abaa7f6
91d6d10
abaa7f6
91d6d10
abaa7f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use a base Alpine image
FROM alpine:3.18

# Update package list and install Node.js, npm, and git
RUN apk update && \
    apk add --no-cache nodejs npm git

# Set the working directory inside the container
WORKDIR /app

# Clone the repository into the working directory
RUN git clone https://github.com/leafmoes/DDG-Chat.git .

# Install npm dependencies
RUN npm install

# Expose ports:
#  - 8787 as the default port
#  - 7860 for Hugging Face
EXPOSE 8787
EXPOSE 7860

# Start the application
CMD ["npm", "start"]