poe-api / Dockerfile
cloudbooklet's picture
Update Dockerfile
994b921
raw
history blame contribute delete
860 Bytes
FROM python:3.9
RUN apt-get install -y git && \
git clone https://github.com/juzeon/poe-openai-proxy.git /poe-api
RUN useradd -ms /bin/bash poeuser
RUN chown poeuser:poeuser -R /poe-api/
USER poeuser
# Set working directory in the container
WORKDIR /poe-api
# Copy requirements.txt and install dependencies
#COPY ./requirements.txt .
RUN pip install --no-cache-dir -r external/requirements.txt
RUN cp config.example.toml config.toml
RUN sed -i 's/5100/7860/g' /poe-api/external/api.py
RUN sed -i 's/localhost:5100/cloudbooklet-poe-api.hf.space/g' /poe-api/config.toml
RUN sed -i 's/5100/7860/g' /poe-api/config.toml
RUN sed -i 's/fdasac5a1dfa6%3D%3D/R28ngXqdn3A9TbfXkTgbMQ%3D%3D/g' /poe-api/config.toml
# Make port 7860 available to the world outside this container
EXPOSE 7860
# Run app.py when the container launches
CMD ["python", "external/api.py"]