Skip to content

Commit

Permalink
chore(Dockerfile): Use a higher port for non-root user
Browse files Browse the repository at this point in the history
Signed-off-by: 陳鈞 <[email protected]>
  • Loading branch information
jim60105 committed Jan 10, 2024
1 parent 050c251 commit f1e7b1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends python3=3.9.2-3

ARG UID

EXPOSE 80
EXPOSE 8080
ENV ASPNETCORE_URLS=http://+:8080

ENV AzureWebJobsScriptRoot=/home/site/wwwroot
ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
# context: .
# dockerfile: ./Dockerfile
ports:
- 80:80
- 80:8080
environment:
- CORS_SUPPORT_CREDENTIALS=true
- FUNCTIONS_WORKER_RUNTIME=dotnet
Expand Down

0 comments on commit f1e7b1f

Please sign in to comment.