update docker files

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-03-15 13:05:37 +00:00
commit 978bbd1071
3 changed files with 19 additions and 13 deletions

View file

@ -3,18 +3,19 @@ FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
WORKDIR /app
# Install Poetry
RUN apt-get update && apt-get install -y curl
RUN curl -sSL https://install.python-poetry.org | python3 -
# Add Poetry to PATH
ENV PATH="${PATH}:/root/.local/bin"
# Copy the pyproject.toml and poetry.lock files
COPY poetry.lock pyproject.toml ./
# RUN apt-get update && apt-get install -y curl
# RUN curl -sSL https://install.python-poetry.org | python3 -
# # Add Poetry to PATH
# ENV PATH="${PATH}:/root/.local/bin"
# # Copy the pyproject.toml and poetry.lock files
# COPY poetry.lock pyproject.toml ./
# Copy the rest of the application codes
COPY ./ ./
# install dependencies
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
# Install dependencies
RUN pip install -e .
CMD ["uvicorn", "langflow.cli:app", "--host", "0.0.0.0", "--port", "5003"]
WORKDIR /app/langflow/backend
CMD ["uvicorn", "langflow_backend.main:app", "--host", "127.0.0.1", "--port", "5003", "--reload"]