File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ COPY requirements.txt /app/requirements.txt
44
55ENV PATH="/app/.venv/bin:${PATH}"
66
7+ COPY . /app
8+
9+ WORKDIR /app
10+
711RUN apk add --update --virtual .build-deps \
812 musl-dev \
913 openssl-dev \
@@ -21,10 +25,10 @@ RUN apk add --update --virtual .build-deps \
2125 su-exec \
2226 bash \
2327 shadow \
24- && apk del .build-deps
28+ curl \
29+ && apk del .build-deps \
30+ && chmod +x /app/bin/* \
31+ && /app/bin/install
2532
26- COPY . /app
27-
28- WORKDIR /app
2933CMD ["/app/bin/boot" ]
3034EXPOSE 8000
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ initArch () {
4+ ARCH=$( uname -m)
5+ case $ARCH in
6+ armv5* ) ARCH=" armv5" ;;
7+ armv6* ) ARCH=" armv6" ;;
8+ armv7* ) ARCH=" arm" ;;
9+ aarch64) ARCH=" arm64" ;;
10+ x86) ARCH=" 386" ;;
11+ x86_64) ARCH=" amd64" ;;
12+ i686) ARCH=" 386" ;;
13+ i386) ARCH=" 386" ;;
14+ esac
15+ }
16+
17+ initArch
18+
19+ curl -o /usr/local/bin/kubectl \
20+ -L " https://dl.k8s.io/$( curl -L -s https://dl.k8s.io/release/stable.txt) /bin/linux/$ARCH /kubectl"
21+ chmod +x /usr/local/bin/kubectl
22+
23+ curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | VERIFY_CHECKSUM=false bash
You can’t perform that action at this time.
0 commit comments