Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ jobs:
tags: ${{ steps.build-meta.outputs.tags }}
provenance: true
sbom: true
target: development
cache-from: type=gha
cache-to: type=gha

Expand Down
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ WORKDIR /app
RUN apt-get update -y && apt-get upgrade -y \
&& rm -rf /var/lib/apt/lists/

COPY pyproject.toml pyproject.toml

RUN python -m venv /venv
ENV PATH=/venv/bin:$PATH
ENV VIRTUAL_ENV=/venv
RUN python -m pip install -U setuptools
RUN pip install -q .

COPY pyproject.toml pyproject.toml

RUN pip install --no-cache-dir -q .[dev]

FROM reqs AS app
COPY willa willa
Expand All @@ -21,11 +23,7 @@ COPY CHANGELOG.rst CHANGELOG.rst
COPY public public
COPY chainlit.md chainlit.md
COPY .chainlit .chainlit
RUN pip install -e .
COPY tests tests
RUN pip install --no-cache-dir -e .

ENV VIRTUAL_ENV=/venv
CMD ["chainlit", "run", "/app/willa/web/app.py", "-h", "--host", "0.0.0.0"]

FROM app AS development
COPY tests tests
RUN pip install -q .[dev]
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ services:
app:
build:
context: .
target: ${DOCKER_APP_BUILD_TARGET:-app}
depends_on:
db:
condition: service_healthy
Expand Down
Loading