-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
23 lines (20 loc) · 1.56 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
# escape=`
ARG WindowsTag=1709
FROM mcr.microsoft.com/windows/servercore:${WindowsTag}
LABEL maintainer="Christopher Degawa (ccom@randomderp.com)" `
version="0.1" description="Base image for use with msys2 under windows containers"
WORKDIR C:/
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/chocolatey/chocolatey.org/master/chocolatey/Website/Install.ps1'))
RUN choco install -y 7zip
RUN Invoke-WebRequest 'http://repo.msys2.org/distrib/msys2-x86_64-latest.tar.xz' -OutFile 'msys2-x86_64-latest.tar.xz'; 7z x msys2-x86_64-latest.tar.xz; rm msys2-x86_64-latest.tar.xz; 7z x msys2-x86_64-latest.tar; rm msys2-x86_64-latest.tar
ENV PATH="C:/msys64/opt/bin;C:/msys64/mingw64/bin;C:/msys64/usr/bin;C:/msys64/bin;C:/Windows/system32;C:/Windows;C:/Windows/System32/Wbem;C:/Windows/System32/WindowsPowerShell/v1.0/;C:/Windows/System32/OpenSSH/;C:/Users/ContainerAdministrator/AppData/Local/Microsoft/WindowsApps" `
MSYSTEM=MINGW64 `
TERM=xterm-256color `
Bash="C:/msys64/usr/bin/bash.exe"
SHELL ["C:\\msys64\\usr\\bin\\bash.exe", "-lc"]
RUN exit
RUN ["C:\\msys64\\usr\\bin\\pacman.exe","-Syyuu","--noconfirm","--ask=20","--noprogressbar"]
RUN ["C:\\msys64\\usr\\bin\\pacman.exe","-Su","--noconfirm","--ask=20","--noprogressbar"]
RUN ["C:\\msys64\\usr\\bin\\pacman.exe","-Scc","--noconfirm","--ask=20","--noprogressbar"]
ENTRYPOINT [ "C:/msys64/usr/bin/bash.exe","-l" ]