diff --git a/.vscode/settings.json b/.vscode/settings.json index b035bb43d..d9e0d0634 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { - "python.pythonPath": "${workspaceFolder}\\env\\Scripts\\python.exe" + "python.pythonPath": "C:\\Users\\mkosinski\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe" } \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0f62521f9..97e3ed50a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Pull a pre-built alpine docker image with nginx and python3 installed FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7 - +# test here # Set the port on which the app runs; make both values the same. # # IMPORTANT: When deploying to Azure App Service, go to the App Service on the Azure diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..03fa44f81 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- master + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: 'ubuntu-latest' + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag) \ No newline at end of file