Skip to content

Commit 5a5156b

Browse files
fix vulns (#69)
* fix vulns, revert git-lfs, set strict git-lfs version
1 parent 3d73606 commit 5a5156b

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

Dockerfile

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
#moving to ubuntu instead of debian to solve high vulnerabilities
2-
FROM ubuntu:jammy-20230816
1+
#moving to ubuntu instead of debian to solve high vulnerabilities
2+
FROM ubuntu:jammy-20231004
33

44
RUN apt-get update && \
55
apt-get install -y curl bash openssl git && \
66
apt-get clean
77

8-
ARG GIT_LFS_VERSION=3.4.0
9-
ARG TARGETPLATFORM
10-
11-
# installing git-lfs
12-
RUN case ${TARGETPLATFORM} in \
13-
"linux/amd64") OS_ARCH=amd64 ;; \
14-
"linux/arm64") OS_ARCH=arm64 ;; \
15-
esac \
16-
&& curl -sL https://github.com/git-lfs/git-lfs/releases/download/v${GIT_LFS_VERSION}/git-lfs-linux-${OS_ARCH}-v${GIT_LFS_VERSION}.tar.gz -o "git-lfs.tar.gz" && \
17-
tar -xvzf "git-lfs.tar.gz" && \
18-
chmod +x git-lfs-${GIT_LFS_VERSION}/install.sh && \
19-
rm git-lfs.tar.gz && \
20-
git-lfs-${GIT_LFS_VERSION}/install.sh
8+
# git-lfs v3.4.0 - last available at the 23.10.2023 and it contains bug. Don't update to the version 3.4.0 !!!
9+
# https://codefresh-io.atlassian.net/browse/CR-20633
10+
# Next preferred version must be >=3.4.1 and should be tested
11+
RUN apt-get install git-lfs=3.0.2-1 && \
12+
git lfs install
2113

2214
#installing busybox
2315
ARG BUSYBOX_VERSION=1.31.0

service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.23
1+
version: 10.1.24

0 commit comments

Comments
 (0)