Spaces:
No application file
No application file
Upload Dockerfile.txt
Browse files- Dockerfile.txt +22 -0
Dockerfile.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
|
| 3 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
# Use a specific container image for the sever
|
| 7 |
+
FROM hadadrjt/ai:latest
|
| 8 |
+
|
| 9 |
+
# Set the main working directory inside the container
|
| 10 |
+
WORKDIR /node
|
| 11 |
+
|
| 12 |
+
# Copy all files into the container
|
| 13 |
+
COPY . .
|
| 14 |
+
|
| 15 |
+
# Install all dependencies
|
| 16 |
+
RUN npm install
|
| 17 |
+
|
| 18 |
+
# Open the port so the web can be accessed
|
| 19 |
+
EXPOSE 7860
|
| 20 |
+
|
| 21 |
+
# Start the server
|
| 22 |
+
CMD ["npm", "start"]
|