2022-04-25 02:47:59 +03:00
|
|
|
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
2021-03-31 21:00:34 +03:00
|
|
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
2023-06-08 00:53:17 +03:00
|
|
|
LABEL org.opencontainers.image.vendor="EpicMorg DevTeam, developer@epicm.org"
|
|
|
|
LABEL org.opencontainers.image.authors="STAM, kasthack, Aleks-Z"
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/EpicMorg/docker"
|
|
|
|
LABEL org.opencontainers.image.url="https://github.com/EpicMorg/docker"
|
|
|
|
LABEL donate.crypto.TON="EQDvHXRK-K1ZieJhgTD9JZQk7xCnWzRbctYnUkWq1lZq1bUg"
|
|
|
|
LABEL donate.crypto.ETH="0x26a8443a694f08cdfec966aa6fd72c45068753ec"
|
|
|
|
LABEL donate.crypto.BTC="bc1querz8ug9asjmsuy6yn4a94a2athgprnu7e5zq2"
|
|
|
|
LABEL donate.crypto.LTC="ltc1qtwwacq8f0n76fer2y83wxu540hddnmf8cdrlvg"
|
|
|
|
LABEL donate.crypto.NVC="4SbMynYETyhmKdggu8f38ULU6yQKiJPuo6"
|
|
|
|
LABEL donate.crypto.DOGE="DHyfE1CZzWtyaQiaMmv6g4KvXVQRUgrYE6"
|
|
|
|
LABEL donate.crypto.PPC="pQWArPzYoLppNe7ew3QPfto1k1eq66BYUB"
|
|
|
|
LABEL donate.crypto.RVN="R9t2LKeLhDSZBKNgUzSDZAossA3UqNvbV3"
|
|
|
|
LABEL donate.crypto.ZEC="t1KRMMmwMSZth8vJcd2ZHtPEFKTQ74yVixE"
|
|
|
|
LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4wQxoVfEJoW7LBhdQMP9cFhZQpJr6xvg7esHLdCbb1"
|
2021-03-31 21:00:34 +03:00
|
|
|
|
2021-04-01 00:51:20 +03:00
|
|
|
####################################################################################################################################
|
|
|
|
# https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile
|
|
|
|
####################################################################################################################################
|
|
|
|
|
2022-04-25 02:47:59 +03:00
|
|
|
ENV chocolateyUseWindowsCompression false
|
|
|
|
# Opt out of the telemetry feature
|
|
|
|
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
|
# Disable first time experience
|
|
|
|
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
|
|
|
|
# Configure Kestrel web server to bind to port 80 when present
|
2024-03-06 02:20:40 +03:00
|
|
|
#ENV ASPNETCORE_URLS=/
|
2022-04-25 02:47:59 +03:00
|
|
|
# Enable detection of running in a container
|
|
|
|
ENV DOTNET_RUNNING_IN_CONTAINER=true
|
|
|
|
# Enable correct mode for dotnet watch (only mode supported in a container)
|
|
|
|
ENV DOTNET_USE_POLLING_FILE_WATCHER=true
|
|
|
|
# Skip extraction of XML docs - generally not useful within an image/container - helps perfomance
|
|
|
|
ENV NUGET_XMLDOC_MODE=skip
|
|
|
|
# PowerShell telemetry for docker image usage
|
|
|
|
ENV POWERSHELL_DISTRIBUTION_CHANNEL=docker-windows
|
|
|
|
# Enable detection of running in a container
|
|
|
|
ENV DOTNET_RUNNING_IN_CONTAINER=true
|
|
|
|
ENV COMPLUS_RUNNING_IN_CONTAINER=1
|
|
|
|
ENV COMPLUS_NGenProtectedProcess_FeatureEnabled=0
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
|
|
|
|
ENV EMG_WORKDIR=C:\\EpicMorg
|
|
|
|
ENV EMG_VOLDIR=C:\\EpicMorg\\mount
|
|
|
|
|
2021-04-01 18:26:19 +03:00
|
|
|
##################################################################
|
|
|
|
# Creating workdir for future
|
|
|
|
##################################################################
|
|
|
|
RUN mkdir C:\\EpicMorg
|
|
|
|
WORKDIR C:\\EpicMorg
|
2022-04-25 02:47:59 +03:00
|
|
|
VOLUME C:\\EpicMorg\\mount
|
2021-04-01 12:12:50 +03:00
|
|
|
|
2021-03-31 21:00:34 +03:00
|
|
|
##################################################################
|
|
|
|
# Installing ocolatey.org
|
|
|
|
##################################################################
|
|
|
|
RUN powershell -Command \
|
2022-04-25 02:47:59 +03:00
|
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
|
|
|
2021-03-31 21:00:34 +03:00
|
|
|
##################################################################
|
2021-04-01 00:51:20 +03:00
|
|
|
# install vcredist packages
|
2021-03-31 21:00:34 +03:00
|
|
|
##################################################################
|
2024-03-06 02:20:40 +03:00
|
|
|
RUN choco install -y --ignore-checksums --allow-empty-checksums --ignoredetectedreboot --ignore-package-exit-codes \
|
2022-04-25 02:47:59 +03:00
|
|
|
visualfsharptools \
|
2021-03-31 21:00:34 +03:00
|
|
|
vcredist2005 \
|
|
|
|
vcredist2008 \
|
|
|
|
vcredist2010 \
|
|
|
|
vcredist2012 \
|
|
|
|
vcredist2013 \
|
|
|
|
vcredist2013 \
|
2022-04-25 02:47:59 +03:00
|
|
|
vcredist2015 \
|
|
|
|
vcredist2017 \
|
|
|
|
vcredist-all \
|
|
|
|
vcredist140
|
2021-04-01 00:51:20 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# install dotnet packages
|
|
|
|
##################################################################
|
2024-03-06 02:20:40 +03:00
|
|
|
RUN choco install -y --ignore-checksums --allow-empty-checksums --ignoredetectedreboot --ignore-package-exit-codes \
|
2022-04-25 02:47:59 +03:00
|
|
|
dotnetfx \
|
|
|
|
netfx-4.8-devpack \
|
2021-04-01 15:29:06 +03:00
|
|
|
dotnet \
|
2021-04-01 00:51:20 +03:00
|
|
|
dotnet-runtime \
|
2022-04-25 02:47:59 +03:00
|
|
|
dotnet-desktopruntime \
|
2021-04-01 00:51:20 +03:00
|
|
|
dotnet-sdk \
|
|
|
|
powershell-core
|
2022-04-25 02:47:59 +03:00
|
|
|
|
|
|
|
# Apply patch to provide support for container limits
|
|
|
|
RUN curl -fSLo patch.msu https://download.microsoft.com/download/1/d/1/1d162522-821a-41c6-ba7d-74ff37b0e6c6/Windows10.0-KB9008395-x64-NDP48.msu && \
|
2024-03-06 02:20:40 +03:00
|
|
|
mkdir patch && \
|
|
|
|
expand patch.msu patch -F:* && \
|
|
|
|
del /F /Q patch.msu && \
|
|
|
|
dism /Online /Add-Package /PackagePath:C:\EpicMorg\patch\windows10.0-kb9008395-x64-ndp48.cab && \
|
|
|
|
rmdir /S /Q patch
|
|
|
|
# && \
|
2022-04-25 02:47:59 +03:00
|
|
|
# Ngen top of assembly graph to optimize a set of frequently used assemblies
|
2024-03-06 02:20:40 +03:00
|
|
|
# %windir%\Microsoft.NET\Framework64\v4.0.30319\ngen install /verbose "Microsoft.PowerShell.Utility.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" && \
|
2022-04-25 02:47:59 +03:00
|
|
|
# To optimize 32-bit assemblies, uncomment the next line
|
2024-03-06 02:20:40 +03:00
|
|
|
# %windir%\Microsoft.NET\Framework\v4.0.30319\ngen /verbose install "Microsoft.PowerShell.Utility.Activities, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" && \
|
2022-04-25 02:47:59 +03:00
|
|
|
|
2021-04-01 00:51:20 +03:00
|
|
|
##################################################################
|
|
|
|
# install base packages
|
|
|
|
##################################################################
|
2024-03-06 02:20:40 +03:00
|
|
|
RUN choco install -y --ignore-checksums --allow-empty-checksums --ignoredetectedreboot --ignore-package-exit-codes \
|
2022-04-25 02:47:59 +03:00
|
|
|
psexec \
|
2021-04-01 00:51:20 +03:00
|
|
|
curl \
|
|
|
|
far \
|
|
|
|
findutils \
|
|
|
|
git \
|
2022-04-25 02:47:59 +03:00
|
|
|
git.install \
|
|
|
|
git-lfs \
|
|
|
|
git-lfs.install \
|
2021-04-01 00:51:20 +03:00
|
|
|
make \
|
|
|
|
mc \
|
|
|
|
nano \
|
|
|
|
openssl \
|
|
|
|
sed \
|
|
|
|
steamcmd \
|
|
|
|
sudo \
|
|
|
|
tartool \
|
2021-03-31 21:00:34 +03:00
|
|
|
unzip \
|
|
|
|
wget
|
2021-04-01 00:51:20 +03:00
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# install archive packages
|
|
|
|
##################################################################
|
2024-03-06 02:20:40 +03:00
|
|
|
RUN choco install -y --ignore-checksums --allow-empty-checksums --ignoredetectedreboot --ignore-package-exit-codes \
|
2021-04-01 00:51:20 +03:00
|
|
|
7zip \
|
|
|
|
7zip-zstd \
|
|
|
|
7zip.commandline \
|
|
|
|
7zip.portable \
|
|
|
|
asar7z \
|
|
|
|
exfat7z \
|
|
|
|
grit7z \
|
|
|
|
iso7z \
|
|
|
|
modern7z \
|
|
|
|
thumbs7z \
|
|
|
|
wavpack7z \
|
|
|
|
winrar
|
2021-04-01 12:12:50 +03:00
|
|
|
|