File tree Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Expand file tree Collapse file tree 2 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:3.15.6
1+ # moving to ubuntu instead of debian to solve high vulnerabilities
2+ FROM ubuntu:jammy-20221101
23
3- RUN apk add --no-cache git=~2.34.4 bash openssh
4+ RUN apt-get update -y && apt-get install git bash openssl -y
45
5- # install git-lfs
6- RUN apk add --no-cache --virtual deps openssl && \
7- export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd64" ) && \
8- wget -qO- https://github.com/git-lfs/git-lfs/releases/download/v2.12.1/git-lfs-linux-${ARCH}-v2.12.1.tar.gz | tar xz && \
9- mv git-lfs /usr/bin/ && \
10- git lfs install && \
11- apk del deps
6+ RUN apt-get install git-lfs && \
7+ git lfs install
128
9+ RUN apt-get update -y && apt-get install busybox -y && ln -s /bin/busybox /usr/bin/[[
1310# add ssh record on which ssh key to use
1411COPY ./.ssh/ /root/.ssh/
1512
@@ -20,9 +17,9 @@ RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
2017COPY ./start.sh /run/start.sh
2118RUN chmod +x /run/start.sh
2219
23- # add non-root user
24- RUN addgroup -g 1000 nodegroup \
25- && adduser -u 1000 -G nodegroup -s /bin/sh -D nodeuser
20+ # USER nodeuser
21+ RUN addgroup --gid 3000 nodegroup && \
22+ adduser --uid 3000 --ingroup nodegroup --shell /bin/sh --disabled-password nodeuser
2623USER nodeuser
2724
2825CMD ["/run/start.sh" ]
Original file line number Diff line number Diff line change 1- version : 10.1.12
1+ version : 10.1.13
You can’t perform that action at this time.
0 commit comments