通过 Dockerfile 和 ODT 在 Window Container 中安装 office365

Tra*_*Son 7 window ms-office office365 docker dockerfile

我尝试通过 Dockerfile 和 ODT(Office 部署工具)在 Window 容器内安装 excel(或 Office 365)。这是我的dockerfile

FROM mcr.microsoft.com/windows/servercore:ltsc2016

# Install Office deployment tool
ADD https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11901-20022.exe C:/deploymenttool_autoextract.exe
RUN C:/deploymenttool_autoextract.exe /quiet /passive /extract:C:

COPY installconfig.xml C:

# Install Office
RUN C:/setup.exe /configure installconfig.xml

ENTRYPOINT powershell
Run Code Online (Sandbox Code Playgroud)

和我的安装文件installconfig.xml

FROM mcr.microsoft.com/windows/servercore:ltsc2016

# Install Office deployment tool
ADD https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11901-20022.exe C:/deploymenttool_autoextract.exe
RUN C:/deploymenttool_autoextract.exe /quiet /passive /extract:C:

COPY installconfig.xml C:

# Install Office
RUN C:/setup.exe /configure installconfig.xml

ENTRYPOINT powershell
Run Code Online (Sandbox Code Playgroud)

建造集装箱在安装办公室耽搁了好几个小时。我认为问题出在我的installconfig.xml文件上。

欢迎任何建议!

在此输入图像描述