Download Dockerfile from prolapse/docs2antr: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/prolapse/docs2antr/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/prolapse/docs2antr/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/prolapse/docs2antr/resolve/main/Dockerfile
387 Bytes
| FROM node:lts-alpine3.19 | |
| RUN apk add git curl bash wget sudo sed | |
| WORKDIR /code | |
| RUN git clone https://github.com/xLmiler/DocsAnthropic2API . && sed -i 's/|| ||/||/g' /code/index.js && sed -i 's|/v1/|/api/v1/|g' /code/index.js | |
| RUN npm install --no-audit --no-fund --loglevel=error --no-progress --omit=dev && npm cache clean --force | |
| COPY . . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["npm", "start"] |