mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
gunicorn
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM python:3.11-slim-bullseye as builder
|
FROM python:3.10-slim-bullseye as builder
|
||||||
|
|
||||||
# Tiktoken requires Rust toolchain, so build it in a separate stage
|
# Tiktoken requires Rust toolchain, so build it in a separate stage
|
||||||
RUN apt-get update && apt-get install -y gcc curl
|
RUN apt-get update && apt-get install -y gcc curl
|
||||||
@@ -6,13 +6,13 @@ RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && apt-get install --reinstall
|
|||||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
RUN pip install --upgrade pip && pip install tiktoken==0.1.2
|
RUN pip install --upgrade pip && pip install tiktoken==0.1.2
|
||||||
|
|
||||||
FROM python:3.11-slim-bullseye
|
FROM python:3.10-slim-bullseye
|
||||||
# Copy pre-built packages from builder stage
|
# Copy pre-built packages from builder stage
|
||||||
COPY --from=builder /usr/local/lib/python3.11/site-packages/ /usr/local/lib/python3.11/site-packages/
|
COPY --from=builder /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages/
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
ENV FLASK_APP=app.py
|
ENV FLASK_APP=app.py
|
||||||
ENV FLASK_ENV=development
|
ENV FLASK_DEBUG=true
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user