From 2f3d1253604d5f504961e6c81e3f6c6611ddd40f Mon Sep 17 00:00:00 2001 From: hax Date: Sun, 9 Feb 2025 04:02:33 +0000 Subject: [PATCH] dockerfile added [WIP] Signed-off-by: hax --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..588c5e3 --- /dev/null +++ b/Dockerfile @@ -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"]