Skip to content

Commit

Permalink
fix: install nodejs in publish image to support SPA app publish
Browse files Browse the repository at this point in the history
final image doesn't have any nodejs dependencies, this change is only for publish image
  • Loading branch information
Ganesh Jangir authored and ganeshnj committed Oct 6, 2021
1 parent 935fb4a commit eda4d65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/AWS.Deploy.DockerEngine/Templates/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eda4d65

Please sign in to comment.