-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
13 lines (12 loc) · 653 Bytes
/
Dockerfile
File metadata and controls
13 lines (12 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# Thank you Microsoft! Thank you PowerShell! Thank you Docker!
FROM mcr.microsoft.com/powershell AS powershell
# Set the module name to the name of the module we are building
ENV ModuleName=PSJekyll
ENV InstallAptGet="build-essential","ruby-full","bundler","git","curl","ca-certificates","libc6","libgcc1"
ENV InstallModule="ugit"
ENV InstallRubyGem="jekyll"
ENV KeepGit="true"
# Copy the module into the container
RUN --mount=type=bind,src=./,target=/Initialize /bin/pwsh -nologo -command /Initialize/Container.init.ps1
# Set the entrypoint to the script we just created.
ENTRYPOINT [ "/bin/pwsh","-nologo","-noexit","-file","/Container.start.ps1" ]