txlyre 1 年之前
父节点
当前提交
a2219242c3
共有 2 个文件被更改,包括 11 次插入0 次删除
  1. 6 0
      langs/pwsh/Dockerfile
  2. 5 0
      langs/pwsh/run.sh

+ 6 - 0
langs/pwsh/Dockerfile

@@ -0,0 +1,6 @@
+RUN apt-get install -y wget
+RUN wget -q https://packages.microsoft.com/config/debian/$VERSION_ID/packages-microsoft-prod.deb
+RUN yes | dpkg -i packages-microsoft-prod.deb
+RUN rm packages-microsoft-prod.deb
+RUN apt-get update -y
+RUN apt-get install powershell -y

+ 5 - 0
langs/pwsh/run.sh

@@ -0,0 +1,5 @@
+IN="$(mktemp --suffix .ps1)"
+
+cat > "$IN"
+
+pwsh "$IN"