Skip to content

Commit 2476711

Browse files
authored
Fix build (#2529)
1 parent 71acd30 commit 2476711

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
File renamed without changes.

services/net/contentmigration/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
33

44
ENV DOTNET_CLI_HOME=/tmp
55
ENV PATH="$PATH:/tmp/.dotnet/tools"
@@ -13,6 +13,7 @@ WORKDIR /src
1313

1414
COPY ../../../libs/net/packages /root/.nuget/packages
1515
COPY services/net/contentmigration services/net/contentmigration
16+
RUN mv services/net/contentmigration/Docker.NuGet.Config services/net/contentmigration/NuGet.Config
1617
COPY libs/net libs/net
1718

1819
RUN fix_permissions() { while [ $# -gt 0 ] ; do chgrp -R 0 "$1" && chmod -R g=u "$1"; shift; done } && \
@@ -22,7 +23,7 @@ WORKDIR /src/services/net/contentmigration
2223
RUN dotnet restore
2324
RUN dotnet build -c $ASPNETCORE_ENVIRONMENT -o /build
2425

25-
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as deploy
26+
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS deploy
2627

2728
WORKDIR /app
2829
COPY --from=build /build .
@@ -34,4 +35,4 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
3435
# Run container by default as user with id 1001 (default)
3536
USER 1001
3637

37-
ENTRYPOINT dotnet TNO.Services.ContentMigration.dll
38+
ENTRYPOINT ["dotnet", "TNO.Services.ContentMigration.dll"]

0 commit comments

Comments
 (0)