Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/Api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build stage
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY *.props .
Expand All @@ -14,7 +14,7 @@ COPY src/ .
RUN dotnet publish "/src/Api/Api.csproj" -c $BUILD_CONFIGURATION -o /app

# Runtime stage
FROM mcr.microsoft.com/dotnet/aspnet:9.0
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app .
USER app
Expand Down
8 changes: 4 additions & 4 deletions backend/src/Jobs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Jobs Functions App Dockerfile
# This needs to be run from the backend directory (build context)
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY *.props .
Expand All @@ -12,9 +12,9 @@ COPY src/ .
RUN dotnet publish "./Jobs/Jobs.csproj" -c $BUILD_CONFIGURATION -o /app

# To enable ssh & remote debugging on app service change the base image to the one below
# FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0-appservice
FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated9.0
# FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0-appservice
FROM mcr.microsoft.com/azure-functions/dotnet-isolated:4-dotnet-isolated10.0
COPY --from=build ["/app", "/home/site/wwwroot"]
ENV AzureWebJobsScriptRoot=/home/site/wwwroot
ENV AzureFunctionsJobHost__Logging__Console__IsEnabled=true
LABEL org.opencontainers.image.source https://github.com/frasermclean/ratemypet
LABEL org.opencontainers.image.source=https://github.com/frasermclean/ratemypet