File tree 2 files changed +30
-6
lines changed
2 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 1
1
# moving to ubuntu instead of debian to solve high vulnerabilities
2
- FROM ubuntu:jammy-20230425
2
+ FROM ubuntu:jammy-20230804
3
3
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
5
7
6
- RUN apt-get install git-lfs && \
7
- git lfs install
8
+ ARG GIT_LFS_VERSION=3.4.0
9
+ ARG TARGETPLATFORM
8
10
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/[[
10
34
11
35
COPY ./start.sh /run/start.sh
12
36
RUN 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