Skip to content

Commit

Permalink
Cr security cloner 1 (#67)
Browse files Browse the repository at this point in the history
* fix security vulnerabilities
  • Loading branch information
yosi-codefresh authored Aug 29, 2023
1 parent f04d5f6 commit 77b32f2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
34 changes: 29 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,36 @@
#moving to ubuntu instead of debian to solve high vulnerabilities
FROM ubuntu:jammy-20230425
FROM ubuntu:jammy-20230804

RUN apt-get update -y && apt-get install git bash openssl -y
RUN apt-get update && \
apt-get install -y curl bash openssl git && \
apt-get clean

RUN apt-get install git-lfs && \
git lfs install
ARG GIT_LFS_VERSION=3.4.0
ARG TARGETPLATFORM

RUN apt-get update -y && apt-get install busybox -y && ln -s /bin/busybox /usr/bin/[[
# installing git-lfs
RUN case ${TARGETPLATFORM} in \
"linux/amd64") OS_ARCH=amd64 ;; \
"linux/arm64") OS_ARCH=arm64 ;; \
esac \
&& 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" && \
tar -xvzf "git-lfs.tar.gz" && \
chmod +x git-lfs-${GIT_LFS_VERSION}/install.sh && \
rm git-lfs.tar.gz && \
git-lfs-${GIT_LFS_VERSION}/install.sh

#installing busybox
ARG BUSYBOX_VERSION=1.31.0

RUN curl -sL https://busybox.net/downloads/binaries/${BUSYBOX_VERSION}-defconfig-multiarch-musl/busybox-x86_64 -o busybox && \
ls -l busybox && \
chmod +x busybox && \
mv busybox /usr/bin/ && \
ls /usr/bin/busybox && \
busybox | head -n 1


RUN ln -s /bin/busybox /usr/bin/[[

COPY ./start.sh /run/start.sh
RUN chmod +x /run/start.sh
Expand Down
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.21
version: 10.1.22

0 comments on commit 77b32f2

Please sign in to comment.