Skip to content

Commit

Permalink
git and npm support in docker added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kretchen001 committed Mar 8, 2024
1 parent 98daf30 commit 40a225b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/AmIVulnerable/AmIVulnerable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ RUN dotnet build AmIVulnerable/AmIVulnerable.csproj -c Release -o /app/build
FROM build AS publish
RUN dotnet publish AmIVulnerable/AmIVulnerable.csproj -c Release -o /app/publish /p:UseAppHost=false

FROM node:latest AS nodeANDgit
# npm and git installation
RUN apt-get update && apt-get install -y git && apt-get install -y nodejs npm

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final
WORKDIR /app
COPY AmIVulnerable/Controllers/Views /app/Controllers/Views
Expand Down

0 comments on commit 40a225b

Please sign in to comment.