generated from nhs-england-tools/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise Dockerfile/compose.yml for one function app with db
- Loading branch information
Showing
2 changed files
with
29 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# To enable ssh & remote debugging on app service change the base image to the one below | ||
# FROM mcr.microsoft.com/azure-functions/python:4-python3.11-appservice | ||
FROM mcr.microsoft.com/azure-functions/python:4-python3.11 | ||
|
||
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ | ||
AzureFunctionsJobHost__Logging__Console__IsEnabled=true \ | ||
AzureWebJobsFeatureFlags=EnableWorkerIndexing \ | ||
AzureWebJobsStorage=UseDevelopmentStorage=true \ | ||
APPLICATION_ID=${APPLICATION_ID} \ | ||
DATABASE_HOST=${DATABASE_HOST} \ | ||
DATABASE_USER=${DATABASE_USER} \ | ||
DATABASE_PASSWORD=${DATABASE_PASSWORD} \ | ||
DATABASE_NAME=${DATABASE_NAME} \ | ||
FUNCTIONS_WORKER_RUNTIME=python \ | ||
NOTIFY_API_KEY=${NOTIFY_API_KEY} \ | ||
NOTIFY_API_URL=${NOTIFY_API_URL} | ||
|
||
COPY --from=root_dir Pipfile / | ||
COPY --from=root_dir Pipfile.lock / | ||
RUN pip install pipenv | ||
RUN pipenv install --system | ||
|
||
COPY . /home/site/wwwroot | ||
COPY ./database/schema.sql /home/site/wwwroot/database/schema.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters