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
6 changes: 5 additions & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ RUN adduser --disabled-password --gecos "" --uid 1001 ghostbill

COPY pyproject.toml .

# Test tooling is opt-in so it never ships in the production image.
# docker-compose.test.yml sets INSTALL_TEST_DEPS=true for CI.
ARG INSTALL_TEST_DEPS=false
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir .
&& if [ "$INSTALL_TEST_DEPS" = "true" ]; then pip install --no-cache-dir ".[test]"; \
else pip install --no-cache-dir .; fi

COPY . .

Expand Down
6 changes: 5 additions & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ dependencies = [
"bcrypt>=4.2.0",
"cryptography>=44.0.0",
"python-multipart>=0.0.12",
"segno>=1.6.0",
]

[project.optional-dependencies]
test = [
"pytest>=9.0.3",
"pytest-asyncio>=0.24.0",
"segno>=1.6.0",
]

[build-system]
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ services:
build:
context: ./backend
dockerfile: Dockerfile
args:
INSTALL_TEST_DEPS: "true"
env_file:
- .env.test
depends_on:
Expand Down
Loading