Download Dockerfile from prolapse/gem: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/spaces/prolapse/gem/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/prolapse/gem/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/prolapse/gem/resolve/main/Dockerfile
391 Bytes
| FROM node:20 | |
| WORKDIR /app | |
| RUN git clone https://github.com/PublicAffairs/openai-gemini /app/tmp | |
| WORKDIR /app/tmp | |
| RUN git checkout b966409e86761db5443a5b1d7fa9f7d67fbfc55c | |
| WORKDIR /app | |
| RUN mv /app/tmp/* /app | |
| RUN npm install | |
| RUN sed -i 's/server.listen(port, () => {/server.listen(port, "0.0.0.0", () => {/' /app/node.mjs | |
| RUN sed -i 's|/v1/|/api/v1/|g' /app/src/worker.mjs | |
| CMD ["npm", "start"] |