1515
1616# #############################################################
1717# Stage: builder
18- FROM ruby:2.7.3 -alpine3.13 AS builder
18+ FROM ruby:2.7.6 -alpine3.16 AS builder
1919
2020WORKDIR /app
2121
@@ -25,7 +25,7 @@ RUN apk add --update --no-cache git bash curl make gcc libc-dev tzdata g++ npm
2525COPY . /app
2626
2727# install bundler
28- RUN gem install bundler --no-document -v $(cat Gemfile.lock | tail -n 1 | xargs )
28+ RUN gem install bundler --no-document -v $(cat Gemfile.lock | tail -1 | tr -d " " )
2929
3030# install gems
3131RUN bundle config set deployment 'true'
@@ -37,7 +37,7 @@ RUN cd dashboard && npm install --no-optional && npm audit fix && npm rebuild no
3737
3838# #############################################################
3939# Stage: final
40- FROM ruby:2.7.3 -alpine3.13
40+ FROM ruby:2.7.6 -alpine3.16
4141
4242LABEL org="Appvia Ltd"
4343LABEL website="appvia.io"
@@ -48,9 +48,10 @@ ENV APP_PATH /app
4848
4949RUN apk add --update --no-cache git bash curl npm yarn
5050
51- RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl && \
52- chmod +x ./kubectl && \
53- mv ./kubectl /usr/local/bin/kubectl
51+ ENV KUBECTL_VERSION="1.23.0"
52+ ENV KUBECTL_BINARY_URL=https://dl.k8s.io/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl
53+
54+ RUN curl -sL -o /usr/bin/kubectl ${KUBECTL_BINARY_URL} && chmod +x /usr/bin/kubectl
5455
5556RUN addgroup -g 1000 -S appuser \
5657 && adduser -u 1000 -S appuser -G appuser
0 commit comments