Skip to content

Commit

Permalink
Fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Jun 18, 2024
1 parent 2f62c52 commit a346d45
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
9 changes: 7 additions & 2 deletions sources/MadWorldNL.HomeFriend.Clients.Portal/Dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ EXPOSE 80

ARG BUILD_CONFIGURATION=Release
WORKDIR /src
RUN dotnet nuget add source --username ${NUGET_USERNAME} --password ${NUGET_ACCESS_TOKEN} --store-password-in-clear-text --name PrivateMadWorld "${PRIVATE_MADWORLD_FEED}"

# Add NuGet source
RUN dotnet nuget add source \
--username "${NUGET_USERNAME}" \
--password "${NUGET_ACCESS_TOKEN}" \
--store-password-in-clear-text \
--name PrivateMadWorld "${PRIVATE_MADWORLD_FEED}" \

COPY ["Directory.Build.props", "/"]
COPY ["Directory.Packages.props", "/"]
COPY ["MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj", "MadWorldNL.HomeFriend.Clients.Portal/"]
Expand Down
15 changes: 10 additions & 5 deletions sources/MadWorldNL.HomeFriend.Clients.Portal/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
FROM --platform=$BUILDPLATFORM nginx:latest AS base
ARG BUILDPLATFORM
ARG PRIVATE_MADWORLD_FEED
ARG NUGET_USERNAME
ARG NUGET_ACCESS_TOKEN

EXPOSE 80
EXPOSE 443

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILDPLATFORM
ARG PRIVATE_MADWORLD_FEED
ARG NUGET_USERNAME
ARG NUGET_ACCESS_TOKEN

WORKDIR /src
RUN dotnet nuget add source --username ${NUGET_USERNAME} --password ${NUGET_ACCESS_TOKEN} --store-password-in-clear-text --name PrivateMadWorld "${PRIVATE_MADWORLD_FEED}"

# Add NuGet source
RUN dotnet nuget add source \
--username "${NUGET_USERNAME}" \
--password "${NUGET_ACCESS_TOKEN}" \
--store-password-in-clear-text \
--name PrivateMadWorld "${PRIVATE_MADWORLD_FEED}" \

COPY ["Directory.Build.props", "/"]
COPY ["Directory.Packages.props", "/"]
COPY ["MadWorldNL.HomeFriend.Clients.Portal/Portal.csproj", "MadWorldNL.HomeFriend.Clients.Portal/"]
Expand Down

0 comments on commit a346d45

Please sign in to comment.