Create Dockerfile
Browse files- Dockerfile +24 -0
Dockerfile
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 poetry
|
17 |
+
|
18 |
+
RUN poetry install --only main
|
19 |
+
|
20 |
+
# Expose the port the app runs on
|
21 |
+
EXPOSE 7860
|
22 |
+
|
23 |
+
# Set the command to run the application
|
24 |
+
CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]
|