File size: 951 Bytes
01da718
e5f0488
01da718
 
e5f0488
01da718
e5f0488
01da718
e5f0488
01da718
 
 
 
e5f0488
01da718
 
 
e5f0488
01da718
 
 
 
 
 
 
 
 
 
 
e5f0488
73cc0d2
38d7846
01da718
 
 
 
 
be27241
deadb00
 
dbb95c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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

# # Set the environment variables
# ENV CLAUDE_BASE_URL="https://api.anthropic.com"
# ENV LOG_LEVEL="info"
# ENV PORT="7860"

# # Install Poetry
# # 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
# RUN pip install --user poetry

# # Expose the port the app runs on
# EXPOSE 7860

# ENV PATH="/root/.local/bin:$PATH"

# RUN poetry install --only main && \
#     chown -R 1000:0 /root/.local/bin/poetry && \
#     chmod +x claude_to_chatgpt/app.py

# # Set the command to run the application
# CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]

FROM wtzeng/claude-to-chatgpt:latest

WORKDIR /app

EXPOSE 7860

ENV PORT="7860"

RUN chown -R 777 /.cache

CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]