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"] |