Skip to content

Commit

Permalink
Reorganise compose and dockerfile (fix this commit up)
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Jan 8, 2025
1 parent 8ec23e1 commit c926533
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ services:
profiles:
- dev

communication-management:
communication-management-api:
container_name: communication-management
network_mode: host
build:
context: .
context: ./src
dockerfile: Dockerfile
additional_contexts:
root_dir: .
depends_on:
db:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile → src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ RUN pip install pipenv
RUN pipenv install --system

COPY . /home/site/wwwroot
COPY ./database/schema.sql /home/site/wwwroot/database/schema.sql
COPY --from=root_dir /database/schema.sql /home/site/wwwroot/database/schema.sql
1 change: 1 addition & 0 deletions src/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
flaskapp = create_app()


@funcapp.function_name(name="CommunicationManagementAPI")
@funcapp.route(
route="{*route}",
auth_level=func.AuthLevel.ANONYMOUS,
Expand Down

0 comments on commit c926533

Please sign in to comment.