Skip to content

Commit

Permalink
Fix dockerfile for the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubigla committed May 23, 2020
1 parent 88be7c1 commit 43153ea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/kubers-agent/release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ ARG VERSION

WORKDIR /build

RUN apk update && apk add --no-cache ca-certificates tzdata && update-ca-certificates
RUN set -ex && \
apk update && apk add --no-cache ca-certificates tzdata && update-ca-certificates

ENV USER=kubers
ENV UID=10001

RUN adduser \
RUN set -ex && \
adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
Expand All @@ -19,9 +21,11 @@ RUN adduser \
--uid "${UID}" \
"${USER}"

RUN wget https://github.com/jacops/kubers/releases/download/v${VERSION}/kubers_${VERSION}_Linux_x86_64.tar.gz
RUN tar -xvf kubers_${VERSION}_Linux_x86_64.tar.gz
RUN set -ex && \
wget https://github.com/jacops/kubers/releases/download/v${VERSION#?}/kubers_${VERSION#?}_Linux_x86_64.tar.gz

RUN set -ex && \
tar -xvf kubers_${VERSION#?}_Linux_x86_64.tar.gz

FROM scratch

Expand Down

0 comments on commit 43153ea

Please sign in to comment.