-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerFile.Debug
33 lines (26 loc) · 1.23 KB
/
DockerFile.Debug
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM mcr.microsoft.com/dotnet/core/runtime:3.1 as run
# https://github.com/kubernetes/kubernetes/releases
ENV KUBE_LATEST_VERSION="v1.17.1"
# https://github.com/kubernetes/helm/releases
ENV HELM_VERSION="v3.0.2"
RUN apt update && apt install -y wget ca-certificates bash git ssh curl \
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& wget -q https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm \
&& chmod +x /usr/local/bin/helm
RUN helm repo add stable https://kubernetes-charts.storage.googleapis.com/ && \
helm repo add jetstack "https://charts.jetstack.io" && \
helm repo add rancher-latest "https://releases.rancher.com/server-charts/latest" && \
helm repo update
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
COPY ./installer /app/installer
WORKDIR /app/installer
RUN dotnet restore
WORKDIR /app/installer
RUN dotnet publish -c Debug -o /app/installer/out
FROM run
WORKDIR /app
COPY --from=build /app/installer/out ./
COPY ./components /components
ENTRYPOINT [ "dotnet", "installer.dll" ]
CMD ["default" ]