Skip to content

Commit

Permalink
Use archived dotnet-2.1 docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Jan 26, 2024
1 parent 2e56cc1 commit 7ba297c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

###############################
# Dependencies
FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/sdk:2.1-alpine as dependencies
# Original: mcr.microsoft.com/dotnet/sdk:2.1-alpine
FROM --platform=linux/amd64 ghcr.io/sillsdev/dotnet-sdk:2.1-alpine as dependencies
WORKDIR /app

COPY source/OptimaJet.DWKit.Application/*.csproj /app/OptimaJet.DWKit.Application/
Expand Down Expand Up @@ -34,7 +35,8 @@ RUN dotnet publish -c Release -o out && \
POSTGRES_PASSWORD=build \
dotnet ef migrations --msbuildprojectextensionspath /app/out/OptimaJet.DWKit.StarterApplication/obj/ script --idempotent --output "out/scripts/api_migrations.sql"

FROM --platform=linux/amd64 mcr.microsoft.com/dotnet/aspnet:2.1-alpine AS runtime-release
# Original: mcr.microsoft.com/dotnet/aspnet:2.1-alpine
FROM --platform=linux/amd64 ghcr.io/sillsdev/dotnet-aspnet:2.1-alpine AS runtime-release
# Setup Timezone before installing s3cmd
ARG timezone="America/New_York"
ENV TZ=${timezone}
Expand Down

0 comments on commit 7ba297c

Please sign in to comment.