|
FROM python:3.9-slim-buster |
|
|
|
RUN apt-get update && \ |
|
apt-get install -y git |
|
|
|
RUN git clone https://github.com/jtsang4/claude-to-chatgpt.git /app |
|
|
|
WORKDIR /app |
|
|
|
|
|
ENV CLAUDE_BASE_URL="https://api.anthropic.com" |
|
ENV LOG_LEVEL="info" |
|
ENV PORT="7860" |
|
|
|
|
|
RUN pip install --user poetry tiktoken==0.4.0 fastapi==0.95.1 uvicorn==0.22.0 httpx==0.24.0 socksio==1.0.0 |
|
|
|
ENV PATH="/root/.local/bin:$PATH" |
|
|
|
RUN poetry install --only main |
|
RUN mkdir -p /.cache && \ |
|
chmod -R 777 /.cache |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["poetry", "run", "python", "/app/claude_to_chatgpt/app.py"] |