feat: adding docker.compose
This commit is contained in:
parent
7224ed0761
commit
9d45ab3e49
3 changed files with 47 additions and 10 deletions
20
dev.Dockerfile
Normal file
20
dev.Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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 ./
|
||||
# Copy the rest of the application codes
|
||||
COPY ./ ./
|
||||
|
||||
|
||||
# install dependencies
|
||||
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
|
||||
|
||||
|
||||
CMD ["uvicorn", "langflow.cli:app", "--host", "0.0.0.0", "--port", "5003"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue