2021-01-31 17:46:45 +13:00
|
|
|
ARG OSVERSION
|
|
|
|
FROM --platform=linux/amd64 gcr.io/k8s-staging-e2e-test-images/windows-servercore-cache:1.0-linux-amd64-${OSVERSION} as core
|
|
|
|
|
2023-02-13 11:28:32 +13:00
|
|
|
FROM mcr.microsoft.com/windows/nanoserver:${OSVERSION} as production
|
2021-01-31 17:46:45 +13:00
|
|
|
ENV PATH "C:\mingit\cmd;C:\Windows\system32;C:\Windows;"
|
|
|
|
|
|
|
|
COPY --from=core /Windows/System32/netapi32.dll /Windows/System32/netapi32.dll
|
|
|
|
|
|
|
|
USER ContainerAdministrator
|
|
|
|
|
2023-10-24 19:30:33 +09:00
|
|
|
COPY dist/mingit/ mingit/
|
2023-02-13 11:28:32 +13:00
|
|
|
COPY dist/docker.exe /
|
|
|
|
COPY dist/mustache-templates /mustache-templates/
|
|
|
|
COPY dist/portainer.exe /
|
|
|
|
COPY dist/public /public/
|
|
|
|
|
|
|
|
# storybook exists only in portainerci builds
|
|
|
|
COPY dist/storybook* /storybook/
|
2021-01-31 17:46:45 +13:00
|
|
|
|
|
|
|
EXPOSE 9000
|
2021-09-14 09:46:59 +12:00
|
|
|
EXPOSE 9443
|
2021-01-31 17:46:45 +13:00
|
|
|
EXPOSE 8000
|
|
|
|
|
2022-12-11 08:58:22 +02:00
|
|
|
LABEL io.portainer.server true
|
|
|
|
|
2023-10-24 19:30:33 +09:00
|
|
|
ENTRYPOINT ["/portainer.exe"]
|