Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from enzostvs/hub-api-playground: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/31f728775a02ac838f67e1e46a30b1a36c0dc32e/Dockerfile
- Command line
-
hf download hf://spaces/enzostvs/hub-api-playground@31f728775a02ac838f67e1e46a30b1a36c0dc32e/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/31f728775a02ac838f67e1e46a30b1a36c0dc32e/Dockerfile
545 Bytes
| # Dockerfile | |
| # Use an official Node.js runtime as the base image | |
| FROM node:18 | |
| # Set the working directory in the container | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json to the container | |
| COPY package.json package-lock.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application files to the container | |
| COPY . . | |
| # Build the Next.js application for production | |
| RUN npm run build | |
| # Expose the application port (assuming your app runs on port 3000) | |
| EXPOSE 3002 | |
| # Start the application | |
| CMD ["npm", "start"] |