Spaces:
Sleeping
Sleeping
PERDYPTO commited on
Update Dockerfile
Browse files- Dockerfile +15 -4
Dockerfile
CHANGED
|
@@ -1,16 +1,27 @@
|
|
| 1 |
# Use a lightweight Node.js runtime base image
|
|
|
|
| 2 |
FROM node:18-alpine
|
| 3 |
|
| 4 |
# Set home directory permissions for Hugging Face security compliance
|
|
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
-
RUN npm install
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Hugging Face Spaces require applications to listen precisely on port 7860
|
| 12 |
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
|
|
|
|
|
| 1 |
# Use a lightweight Node.js runtime base image
|
| 2 |
+
|
| 3 |
FROM node:18-alpine
|
| 4 |
|
| 5 |
# Set home directory permissions for Hugging Face security compliance
|
| 6 |
+
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
+
# Copy dependency mappings
|
| 10 |
+
|
| 11 |
+
COPY package*.json ./
|
| 12 |
+
|
| 13 |
+
# Install verified dependency frameworks locally inside the container environment
|
| 14 |
|
| 15 |
+
RUN npm install
|
| 16 |
+
|
| 17 |
+
# Copy application script engines
|
| 18 |
+
|
| 19 |
+
COPY server.js .
|
| 20 |
|
| 21 |
# Hugging Face Spaces require applications to listen precisely on port 7860
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
+
# Execute server engine initialization paths
|
| 26 |
+
|
| 27 |
+
CMD ["node", "server.js"]
|