Spaces:
Paused
Paused
Download Dockerfile from levantermd/validation: direct link, hf CLI and curl.
- Browser
- Download file 647 Bytes
-
https://huggingface.co/spaces/levantermd/validation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/levantermd/validation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/levantermd/validation/resolve/main/Dockerfile
647 Bytes
| # Use Node.js LTS (Buster) as the base image | |
| FROM node:lts-buster | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy package.json and package-lock.json (or yarn.lock if using yarn) | |
| COPY package*.json ./ | |
| # Install dependencies (try npm first, fall back to yarn) | |
| RUN npm install || yarn install | |
| # Copy the rest of your app files to the container | |
| COPY . . | |
| # Change ownership of the application files to the 'node' user | |
| RUN chown -R node:node /app | |
| # Switch to the 'node' user for security reasons | |
| USER node | |
| # Expose the port (assuming the app runs on port 8000) | |
| EXPOSE 8000 | |
| # Start the app using `npm start` | |
| CMD ["npm", "start"] |