Spaces:
Runtime error
Runtime error
Download Dockerfile from xinxin3321/clewd: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/spaces/xinxin3321/clewd/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/xinxin3321/clewd/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/xinxin3321/clewd/resolve/main/Dockerfile
618 Bytes
| # Use the official Node.js image as the base image | |
| FROM node:20.4 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the package.json and package-lock.json files to the container | |
| COPY package*.json ./ | |
| # Install the dependencies | |
| RUN npm install --no-audit --fund false | |
| # Copy the rest of the files to the container | |
| COPY . . | |
| # Change ownership of files in lib/bin and set permissions | |
| RUN chown -R node:node lib/bin/* && \ | |
| chmod u+x lib/bin/* && \ | |
| chmod -R 777 /app | |
| # Run as the "node" user for better security practices | |
| USER node | |
| RUN ls -la | |
| # Start the application | |
| CMD ["node", "clewd.js"] | |