mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
1 parent
ef44748787
commit
19defe55c3
1 file changed
+10
+10
@@ -7,6 +7,16 @@ COPY . .
|
||||
|
||||
# Publish the application
|
||||
FROM build AS publish
|
||||
|
||||
# Install PowerShell
|
||||
RUN apt-get update && \
|
||||
apt-get install -y wget apt-transport-https software-properties-common && \
|
||||
wget -q "https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb" && \
|
||||
dpkg -i packages-microsoft-prod.deb && \
|
||||
apt-get update && \
|
||||
apt-get install -y powershell && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pwsh "eng/scripts/Build-Module.ps1" -OutputPath /app/publish -OperatingSystem Linux -Architecture x64
|
||||
|
||||
# Build the runtime image
|
||||
|
||||
Reference in new issue
Block a user