Spaces:
Sleeping
Sleeping
Download Dockerfile from GreenRunchly/SimpleAPI: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/GreenRunchly/SimpleAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/GreenRunchly/SimpleAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/GreenRunchly/SimpleAPI/resolve/main/Dockerfile
322 Bytes
| # Use official Node.js base image | |
| FROM node:18-alpine | |
| # Set working directory inside container | |
| WORKDIR /usr/src/app | |
| # Copy package files and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy app files | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["npm", "start"] | |