Gk2a / Dockerfile
rr1's picture
Update Dockerfile
b3abe53 verified
raw
history blame contribute delete
399 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git sed
RUN git clone https://github.com/renqabs/gk2a.git /app
WORKDIR /app
RUN sed -i 's/\/v1\/chat\/completions/\/hf\/v1\/chat\/completions/g' app.py
RUN sed -i 's/\/v1\/models/\/hf\/v1\/models/g' app.py
RUN pip install --no-cache-dir flask requests curl_cffi werkzeug loguru
ENV PORT=3000
EXPOSE 3000
CMD ["python", "app.py"]