SimFG/Claude
0
1FROM python:3.9-slim-buster2 3RUN apt-get update && \4 apt-get install -y git5 6RUN useradd -m -u 1000 user7 8# Switch to the "user" user9USER user10 11# Set home to the user's home directory12ENV HOME=/home/user \13 PATH=/home/user/.local/bin:$PATH14 15# RUN git clone https://github.com/jtsang4/claude-to-chatgpt.git $HOME/app16 17RUN git clone https://github.com/SimFG/claude-to-chatgpt.git $HOME/app18 19# Set the working directory to the user's home directory20WORKDIR $HOME/app21 22# Copy the current directory contents into the container at $HOME/app setting the owner to the user23COPY --chown=user . $HOME/app24 25# Set the environment variables26ENV CLAUDE_BASE_URL="https://api.anthropic.com"27ENV LOG_LEVEL="info"28ENV PORT=786029 30# Install Poetry31RUN pip install --user poetry32 33# Expose the port the app runs on34EXPOSE 786035 36RUN poetry install --only main37 38# Set the command to run the application39CMD ["poetry", "run", "python", "claude_to_chatgpt/app.py"]