Skip to content

Commit e4ae7dc

Browse files
committed
build: restore Dockerfile for Windows
1 parent e529b36 commit e4ae7dc

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

package/Windows/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
ARG FROM_IMAGE=mcr.microsoft.com/powershell:windowsservercore-ltsc2022
2+
FROM ${FROM_IMAGE}
3+
4+
LABEL maintainer "Devolutions Inc."
5+
6+
WORKDIR "C:\\Devolutions\Gateway"
7+
8+
ENV DGATEWAY_EXECUTABLE_PATH="C:\\Devolutions\Gateway\DevolutionsGateway.exe"
9+
ENV DGATEWAY_LIB_XMF_PATH="C:\\Devolutions\Gateway\xmf.dll"
10+
ENV DGATEWAY_WEBAPP_PATH="C:\\Devolutions\Gateway\webapp"
11+
12+
ADD webapp $DGATEWAY_WEBAPP_PATH
13+
ADD DevolutionsGateway C:\\Devolutions\\Gateway\\PowerShell\\Modules\\DevolutionsGateway
14+
COPY DevolutionsGateway.exe $DGATEWAY_EXECUTABLE_PATH
15+
COPY xmf.dll $DGATEWAY_LIB_XMF_PATH
16+
17+
ENV PSModulePath="${PSModulePath}C:\\Devolutions\\Gateway\\PowerShell\\Modules;"
18+
19+
EXPOSE 8080
20+
EXPOSE 10256
21+
22+
ENTRYPOINT ["C:\\Devolutions\\Gateway\\DevolutionsGateway.exe"]

0 commit comments

Comments
 (0)