Download Dockerfile from ItsMa8di/idbot: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/ItsMa8di/idbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ItsMa8di/idbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ItsMa8di/idbot/resolve/main/Dockerfile
480 Bytes
| # Use a lightweight Node.js image | |
| FROM node:20-alpine | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy only the necessary files to reduce build context size | |
| COPY package.json package-lock.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application code into the container | |
| COPY . . | |
| # Compile TypeScript code | |
| RUN npx tsc | |
| # Expose the port that your app will run on | |
| EXPOSE 3000 | |
| # Start the application | |
| CMD ["node", "./dist/index.js"] | |