diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6beea6d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM mcr.microsoft.com/powershell:alpine-3.8 + +USER nobody + +COPY bot.ps1 / + +ENTRYPOINT /bot.ps1 \ No newline at end of file diff --git a/bot.ps1 b/bot.ps1 index 302e6e8..dc7c823 100755 --- a/bot.ps1 +++ b/bot.ps1 @@ -1,3 +1,5 @@ +#!/usr/bin/pwsh + #alternatively read params from $env #for more flexible Dockerfile support param (