-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
21 lines (14 loc) · 670 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG IMAGE='windows'
ARG VERSION='20H2'
FROM mcr.microsoft.com/${IMAGE}:${VERSION} as windows
LABEL org.label-schema.maintainer="Jakub 'Ash258' Čábera <[email protected]>" \
org.label-schema.description='Shovel docker image' \
org.label-schema.url='https:/Ash258/Scoop-Core'
ARG SCOOP_REPO='https:/Ash258/Scoop-Core.git'
ARG SCOOP_BRANCH='main'
ARG POWERSHELL='powershell.exe'
ENV SCOOP='C:\SCOOP'
COPY '.cache/*' 'C:/SCOOP/cache/'
COPY 'windows/install.ps1' 'C:/'
RUN %POWERSHELL% -NoLogo -NonInteractive -Command "Set-ExecutionPolicy Bypass; & 'C:\install.ps1'; exit $LASTEXITCODE"
CMD [ "pwsh.exe", "-NoLogo", "-NoExit" ]