From d5b5778c7abc34165610b5adfffdba5088a837f0 Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 23 Nov 2019 18:21:08 +0100 Subject: [PATCH] add Dockerfile and shebang fixes #7 --- Dockerfile | 7 +++++++ bot.ps1 | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 Dockerfile 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 (