forked from AElfProject/aelf-sdk.php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (23 loc) · 1.32 KB
/
Dockerfile
File metadata and controls
23 lines (23 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
# FROM mcr.microsoft.com/windows/servercore:ltsc2019
# SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] ;
COPY ./dotnet-install.ps1 .
RUN ./dotnet-install.ps1 -InstallDir '~/.dotnet' -Version '3.1.102' ;
RUN wget http://18.203.235.132:8000/aelf-node.zip -OutFile c:\aelf.zip ; \
Expand-Archive -Path c:\aelf.zip -DestinationPath c:\aelf ; \
dir c:\aelf\ ; \
cat c:\aelf\aelf-node\appsettings.json; \
mkdir -p C:\Users\ContainerAdministrator\AppData\Local\aelf\keys ;
COPY ./scripts/aelf-node/appsettings.json c:/aelf/aelf-node/
COPY ./scripts/aelf-node/keys/* C:/Users/ContainerAdministrator/AppData/Local/aelf/keys/
COPY ./build.ps1 .
# CMD ["dotnet", "c:/aelf/aelf-node/AElf.Launcher.dll"]
# RUN netstat -an ;\
# cd c:/aelf/aelf-node;\
# C:\Users\ContainerAdministrator\.dotnet\dotnet.exe AElf.Launcher.dll ;
#CMD ["C:\Users\ContainerAdministrator\.dotnet\dotnet.exe","c:\aelf\aelf-node\AElf.Launcher.dll"]
EXPOSE 8001
EXPOSE 80
ENTRYPOINT [ "C:\Users\ContainerAdministrator\.dotnet\dotnet.exe","c:\aelf\aelf-node\AElf.Launcher.dll" ]
#ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]
# CMD ["C:\Users\ContainerAdministrator\.dotnet\dotnet.exe","c:\aelf\aelf-node\AElf.Launcher.dll"]