Update Dockerfile
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
@@ -20,23 +20,18 @@ WORKDIR $HOME/app
|
|
20 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
21 |
COPY --chown=user . $HOME/app
|
22 |
|
23 |
-
#
|
24 |
ENV CLAUDE_BASE_URL="https://api.anthropic.com"
|
25 |
ENV LOG_LEVEL="info"
|
26 |
-
ENV PORT=
|
27 |
|
28 |
-
#
|
29 |
-
# # 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
|
30 |
RUN pip install --user poetry
|
31 |
|
32 |
-
#
|
33 |
EXPOSE 7860
|
34 |
|
35 |
RUN poetry install --only main
|
36 |
|
37 |
-
# RUN poetry install --only main && \
|
38 |
-
# chown -R 1000:0 /root/.local/bin/poetry && \
|
39 |
-
# chmod +x claude_to_chatgpt/app.py
|
40 |
-
|
41 |
# Set the command to run the application
|
42 |
CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]
|
|
|
20 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
21 |
COPY --chown=user . $HOME/app
|
22 |
|
23 |
+
# Set the environment variables
|
24 |
ENV CLAUDE_BASE_URL="https://api.anthropic.com"
|
25 |
ENV LOG_LEVEL="info"
|
26 |
+
ENV PORT=7860
|
27 |
|
28 |
+
# Install Poetry
|
|
|
29 |
RUN pip install --user poetry
|
30 |
|
31 |
+
# Expose the port the app runs on
|
32 |
EXPOSE 7860
|
33 |
|
34 |
RUN poetry install --only main
|
35 |
|
|
|
|
|
|
|
|
|
36 |
# Set the command to run the application
|
37 |
CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]
|