2021-01-31 04:46:45 +00:00
|
|
|
ARG OSVERSION
|
|
|
|
FROM --platform=linux/amd64 gcr.io/k8s-staging-e2e-test-images/windows-servercore-cache:1.0-linux-amd64-${OSVERSION} as core
|
2021-10-19 22:22:21 +00:00
|
|
|
FROM --platform=linux/amd64 alpine:3.14 as downloader
|
2021-01-31 04:46:45 +00:00
|
|
|
ENV GIT_VERSION 2.30.0
|
|
|
|
ENV GIT_PATCH_VERSION 2
|
|
|
|
|
|
|
|
RUN mkdir mingit/ \
|
2023-02-12 22:28:32 +00:00
|
|
|
&& wget https://github.com/git-for-windows/git/releases/download/v$GIT_VERSION.windows.$GIT_PATCH_VERSION/MinGit-$GIT_VERSION.$GIT_PATCH_VERSION-busybox-64-bit.zip \
|
|
|
|
&& unzip MinGit-$GIT_VERSION.$GIT_PATCH_VERSION-busybox-64-bit.zip -d mingit/
|
2021-01-31 04:46:45 +00:00
|
|
|
|
2023-02-12 22:28:32 +00:00
|
|
|
FROM mcr.microsoft.com/windows/nanoserver:${OSVERSION} as production
|
2021-01-31 04:46:45 +00:00
|
|
|
ENV PATH "C:\mingit\cmd;C:\Windows\system32;C:\Windows;"
|
|
|
|
|
|
|
|
COPY --from=downloader /mingit mingit/
|
|
|
|
COPY --from=core /Windows/System32/netapi32.dll /Windows/System32/netapi32.dll
|
|
|
|
|
|
|
|
USER ContainerAdministrator
|
|
|
|
|
2023-02-12 22:28:32 +00:00
|
|
|
COPY dist/docker.exe /
|
|
|
|
COPY dist/docker-compose.exe /
|
|
|
|
COPY dist/helm.exe /
|
|
|
|
COPY dist/kubectl.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 04:46:45 +00:00
|
|
|
|
|
|
|
EXPOSE 9000
|
2021-09-13 21:46:59 +00:00
|
|
|
EXPOSE 9443
|
2021-01-31 04:46:45 +00:00
|
|
|
EXPOSE 8000
|
|
|
|
|
2022-12-11 06:58:22 +00:00
|
|
|
LABEL io.portainer.server true
|
|
|
|
|
2021-01-31 04:46:45 +00:00
|
|
|
ENTRYPOINT ["/portainer.exe"]
|