-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 1.08 KB
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# docker tag: registry.cloud.insitehq.net/commerce-windows/build-base
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019 as build
WORKDIR /app
COPY IronPdfDockerTest.sln IronPdfDockerTest.csproj packages.config ./
RUN nuget restore IronPdfDockerTest.sln
COPY . ./
RUN msbuild IronPdfDockerTest.sln /p:Configuration=Release
# docker tag registry.cloud.insitehq.net/commerce-windows/runtime-base
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 as runtime
ENV chocolateyUseWindowsCompression 'false'
RUN ["powershell", "-Command", "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; [Net.ServicePointManager]::SecurityProtocol; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex"]
RUN choco feature enable -n allowGlobalConfirmation; choco feature disable -n=showDownloadProgress
RUN #choco install vcredist140; choco install openssh
WORKDIR C:/LogMonitor
COPY ./LogMonitor/. ./
WORKDIR /inetpub/wwwroot
COPY --from=build /app/. ./
ENTRYPOINT C:/LogMonitor/LogMonitor.exe powershell -File Entrypoint.ps1