Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +19 -3
Dockerfile
CHANGED
@@ -1,8 +1,24 @@
|
|
1 |
-
|
2 |
-
|
3 |
|
4 |
-
|
|
|
|
|
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"]
|