-
Notifications
You must be signed in to change notification settings - Fork 397
/
Copy pathDockerfile
29 lines (19 loc) · 1.07 KB
/
Dockerfile
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
27
28
29
FROM mcr.microsoft.com/dotnet/framework/sdk:4.8
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV chocolateyUseWindowsCompression false
RUN iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')); \
choco feature disable --name showDownloadProgress
ENV NODE_VERSION 10.16.3
ENV GO_VERSION 1.12.9
RUN choco install -y nodejs -version $env:NODE_VERSION ; \
choco install -y golang -version $env:GO_VERSION
RUN npm install -g yarn
ENV FOSSA_VERSION 1.0.4
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
Invoke-WebRequest $('https://github.com/fossas/fossa-cli/releases/download/v{0}/fossa-cli_{0}_windows_amd64.zip' -f $env:FOSSA_VERSION) -OutFile fossa.zip ; \
Expand-Archive fossa.zip -DestinationPath C:\fossa; \
Remove-Item fossa.zip
RUN $env:PATH = 'C:\fossa;{0}' -f $env:PATH ; \
[Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine)
ENTRYPOINT [ "fossa.exe" ]
CMD [ "--version" ]