Spaces:
Sleeping
Sleeping
Download Dockerfile from DeepThoughtAI/prolog_llm: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/DeepThoughtAI/prolog_llm/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DeepThoughtAI/prolog_llm/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DeepThoughtAI/prolog_llm/resolve/main/Dockerfile
420 Bytes
| FROM node:18-slim | |
| WORKDIR /app | |
| # Copy package files | |
| COPY package*.json ./ | |
| # Install all dependencies (including devDependencies for build) | |
| RUN npm install | |
| # Copy application files | |
| COPY . . | |
| # Build the React app | |
| RUN npm run build | |
| # Remove devDependencies after build | |
| RUN npm prune --production | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variable | |
| ENV NODE_ENV=production | |
| # Start server | |
| CMD ["node", "server.js"] | |