From eda4d65ca2210d8f46275013d36fb08eb7e0833a Mon Sep 17 00:00:00 2001 From: Ganesh Jangir Date: Wed, 6 Oct 2021 11:01:35 -0700 Subject: [PATCH] fix: install nodejs in publish image to support SPA app publish final image doesn't have any nodejs dependencies, this change is only for publish image --- src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template b/src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template index 1d6cbfa07..d30b1fc81 100644 --- a/src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template +++ b/src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template @@ -12,6 +12,10 @@ WORKDIR "/src/{project-folder}" RUN dotnet build "{project-name}" -c Release -o /app/build FROM build AS publish +RUN apt-get update -yq \ + && apt-get install curl gnupg -yq \ + && curl -sL https://deb.nodesource.com/setup_10.x | bash \ + && apt-get install nodejs -yq RUN dotnet publish "{project-name}" -c Release -o /app/publish FROM base AS final