dockerfile added [WIP]
Signed-off-by: hax <hax@lainlounge.xyz>
This commit is contained in:
parent
d0e336d0a2
commit
2f3d125360
1 changed files with 22 additions and 0 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Use Windows Server Core as base image
|
||||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
# Define environment variables matching script paths
|
||||
ENV ISO_MOUNT="C:\\ISOMount" `
|
||||
OUTPUT_PATH="C:\\Tiny11_Output"
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir $ISO_MOUNT $OUTPUT_PATH
|
||||
|
||||
# Copy the PowerShell script into the container
|
||||
COPY install_tiny11.ps1 C:\install_tiny11.ps1
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR C:\
|
||||
|
||||
# Set execution policy for scripts
|
||||
SHELL ["powershell", "-Command"]
|
||||
RUN Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
|
||||
|
||||
# Define entrypoint for running the script
|
||||
ENTRYPOINT ["powershell.exe", "-File", "C:\\install_tiny11.ps1", "-OutputPath", "C:\\Tiny11_Output"]
|
Loading…
Add table
Reference in a new issue