Skip to content

Commit 77b32f2

Browse files
Cr security cloner 1 (#67)
* fix security vulnerabilities
1 parent f04d5f6 commit 77b32f2

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

Dockerfile

+29-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
11
#moving to ubuntu instead of debian to solve high vulnerabilities
2-
FROM ubuntu:jammy-20230425
2+
FROM ubuntu:jammy-20230804
33

4-
RUN apt-get update -y && apt-get install git bash openssl -y
4+
RUN apt-get update && \
5+
apt-get install -y curl bash openssl git && \
6+
apt-get clean
57

6-
RUN apt-get install git-lfs && \
7-
git lfs install
8+
ARG GIT_LFS_VERSION=3.4.0
9+
ARG TARGETPLATFORM
810

9-
RUN apt-get update -y && apt-get install busybox -y && ln -s /bin/busybox /usr/bin/[[
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
21+
22+
#installing busybox
23+
ARG BUSYBOX_VERSION=1.31.0
24+
25+
RUN curl -sL https://busybox.net/downloads/binaries/${BUSYBOX_VERSION}-defconfig-multiarch-musl/busybox-x86_64 -o busybox && \
26+
ls -l busybox && \
27+
chmod +x busybox && \
28+
mv busybox /usr/bin/ && \
29+
ls /usr/bin/busybox && \
30+
busybox | head -n 1
31+
32+
33+
RUN ln -s /bin/busybox /usr/bin/[[
1034

1135
COPY ./start.sh /run/start.sh
1236
RUN chmod +x /run/start.sh

service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.21
1+
version: 10.1.22

0 commit comments

Comments
 (0)