Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
# Use Node.js LTS version
|
| 2 |
FROM node:18-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
# Switch to the "node" user for security
|
| 5 |
USER node
|
| 6 |
|
|
@@ -20,9 +24,10 @@ RUN npm install
|
|
| 20 |
# Copy the application code with correct ownership
|
| 21 |
COPY --chown=node:node . .
|
| 22 |
|
| 23 |
-
|
| 24 |
-
RUN wget https://huggingface.co/datasets/API-Handler/unlim-openai/resolve/main/
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
# Expose port 7860 (required for Hugging Face Spaces)
|
| 28 |
EXPOSE 7860
|
|
|
|
| 1 |
# Use Node.js LTS version
|
| 2 |
FROM node:18-slim
|
| 3 |
|
| 4 |
+
# Install wget
|
| 5 |
+
USER root
|
| 6 |
+
RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
|
| 7 |
+
|
| 8 |
# Switch to the "node" user for security
|
| 9 |
USER node
|
| 10 |
|
|
|
|
| 24 |
# Copy the application code with correct ownership
|
| 25 |
COPY --chown=node:node . .
|
| 26 |
|
| 27 |
+
# Download required files
|
| 28 |
+
RUN wget https://huggingface.co/datasets/API-Handler/unlim-openai/resolve/main/apiHandler.js && \
|
| 29 |
+
wget https://huggingface.co/datasets/API-Handler/unlim-openai/resolve/main/api_keys.txt && \
|
| 30 |
+
wget https://huggingface.co/datasets/API-Handler/unlim-openai/resolve/main/server.js
|
| 31 |
|
| 32 |
# Expose port 7860 (required for Hugging Face Spaces)
|
| 33 |
EXPOSE 7860
|