Skip to content

Commit

Permalink
config(docker): Add test target to DockerfileDevelop and docker-compo…
Browse files Browse the repository at this point in the history
…se-deploy.yml
  • Loading branch information
drikusroor committed Feb 2, 2024
1 parent 56bd28d commit a18296a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/DockerfileDevelop
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ WORKDIR /server
COPY requirements/dev.txt /server/
RUN pip install -r dev.txt

# Base the test image on the base image that is used for development
FROM base as test
COPY . /server/
1 change: 1 addition & 0 deletions docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
build:
context: ./backend
dockerfile: DockerfileDevelop
target: test
depends_on:
db:
condition: service_healthy
Expand Down

0 comments on commit a18296a

Please sign in to comment.