SimFG commited on
Commit
01da718
·
1 Parent(s): a7ea928

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -19
Dockerfile CHANGED
@@ -1,29 +1,39 @@
1
- FROM python:3.9-slim-buster
2
 
3
- RUN apt-get update && \
4
- apt-get install -y git
5
 
6
- RUN git clone https://github.com/jtsang4/claude-to-chatgpt.git /app
7
 
8
- WORKDIR /app
9
 
10
- # Set the environment variables
11
- ENV CLAUDE_BASE_URL="https://api.anthropic.com"
12
- ENV LOG_LEVEL="info"
13
- ENV PORT="7860"
14
 
15
- # Install Poetry
16
- # 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
17
- RUN pip install --user poetry
18
 
19
- # Expose the port the app runs on
20
- EXPOSE 7860
 
 
 
 
 
 
 
 
 
21
 
22
- ENV PATH="/root/.local/bin:$PATH"
23
 
24
- RUN poetry install --only main && \
25
- chown -R 1000:0 /root/.local/bin/poetry && \
26
- chmod +x claude_to_chatgpt/app.py
 
 
27
 
28
- # Set the command to run the application
29
  CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]
 
1
+ # FROM python:3.9-slim-buster
2
 
3
+ # RUN apt-get update && \
4
+ # apt-get install -y git
5
 
6
+ # RUN git clone https://github.com/jtsang4/claude-to-chatgpt.git /app
7
 
8
+ # WORKDIR /app
9
 
10
+ # # Set the environment variables
11
+ # ENV CLAUDE_BASE_URL="https://api.anthropic.com"
12
+ # ENV LOG_LEVEL="info"
13
+ # ENV PORT="7860"
14
 
15
+ # # Install Poetry
16
+ # # 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
17
+ # RUN pip install --user poetry
18
 
19
+ # # Expose the port the app runs on
20
+ # EXPOSE 7860
21
+
22
+ # ENV PATH="/root/.local/bin:$PATH"
23
+
24
+ # RUN poetry install --only main && \
25
+ # chown -R 1000:0 /root/.local/bin/poetry && \
26
+ # chmod +x claude_to_chatgpt/app.py
27
+
28
+ # # Set the command to run the application
29
+ # CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]
30
 
31
+ FROM wtzeng:claude-to-chatgpt:latest
32
 
33
+ WORKDIR /app
34
+
35
+ EXPOSE 7860
36
+
37
+ ENV PORT="7860"
38
 
 
39
  CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]