Spaces:
Runtime error
Runtime error
Download Dockerfile from 1337V/d33psite1337: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/1337V/d33psite1337/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/1337V/d33psite1337/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/1337V/d33psite1337/resolve/main/Dockerfile
415 Bytes
| FROM node:20-alpine | |
| USER root | |
| USER 1000 | |
| WORKDIR /usr/src/app | |
| # Copy package.json and package-lock.json to the container | |
| COPY --chown=1000 package.json package-lock.json ./ | |
| # Copy the rest of the application files to the container | |
| COPY --chown=1000 . . | |
| RUN npm install | |
| RUN npm run build | |
| # Expose the application port (assuming your app runs on port 3000) | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["npm", "start"] |