File tree Expand file tree Collapse file tree 2 files changed +30
-6
lines changed Expand file tree Collapse file tree 2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 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
1135COPY ./start.sh /run/start.sh
1236RUN chmod +x /run/start.sh
Original file line number Diff line number Diff line change 1- version : 10.1.21
1+ version : 10.1.22
You can’t perform that action at this time.
0 commit comments