Skip to content

Commit

Permalink
chore: cves (#18)
Browse files Browse the repository at this point in the history
* chore: cves

* f

* f

* f
  • Loading branch information
emosbaugh authored Jun 6, 2023
1 parent 40b1a73 commit 7acdfe3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin/
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.15 AS build
FROM alpine:3.18 AS build

# install kubectl
RUN apk add curl
Expand All @@ -11,13 +11,13 @@ RUN curl -fsSLO "${KUBECTL_URL}" \
&& mv kubectl "/usr/local/bin/kubectl-${KUBECTL_VERSION}" \
&& ln -s "/usr/local/bin/kubectl-${KUBECTL_VERSION}" /usr/local/bin/kubectl

FROM alpine:3.15
FROM alpine:3.18

RUN apk add --update --upgrade \
RUN apk add --update --upgrade --no-cache \
bash \
\
\
apk-tools \
libssl3 \
&& rm -rf /var/cache/apk/*

WORKDIR /home/replicated
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ endif

.PHONY: build
build:
docker build -t $(IMAGE):$(GIT_SHA) .
docker build --pull -t $(IMAGE):$(GIT_SHA) .

.PHONY: scan
scan:
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
grype --fail-on medium --only-fixed $(IMAGE):$(GIT_SHA)
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b bin
./bin/grype --fail-on medium --only-fixed $(IMAGE):$(GIT_SHA)

.PHONY: push
push:
Expand Down

0 comments on commit 7acdfe3

Please sign in to comment.