Spaces:
Running
Running
Download Dockerfile from HFTools/inference-api: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/HFTools/inference-api/resolve/d10cc86cb96538394c8585db7da12da3f97cfb95/Dockerfile
- Command line
-
hf download hf://spaces/HFTools/inference-api@d10cc86cb96538394c8585db7da12da3f97cfb95/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HFTools/inference-api/resolve/d10cc86cb96538394c8585db7da12da3f97cfb95/Dockerfile
611 Bytes
| # Dockerfile | |
| # Use an official Node.js runtime as the base image | |
| FROM node:18 | |
| USER 1000 | |
| # Set the working directory in the container | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json to the container | |
| COPY --chown=1000 package.json package-lock.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application files to the container | |
| COPY --chown=1000 . . | |
| # Build the Svelte Kit application for production | |
| RUN npm run build | |
| # Expose the application port (assuming your app runs on port 3000) | |
| EXPOSE 3000 | |
| # Run the application in production mode | |
| CMD ["node", "build/index.js"] |