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
2
3
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
4
5
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
12
8
9
+ RUN apt-get update -y && apt-get install busybox -y && ln -s /bin/busybox /usr/bin/[[
13
10
# add ssh record on which ssh key to use
14
11
COPY ./.ssh/ /root/.ssh/
15
12
@@ -20,9 +17,9 @@ RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
20
17
COPY ./start.sh /run/start.sh
21
18
RUN chmod +x /run/start.sh
22
19
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
26
23
USER nodeuser
27
24
28
25
CMD ["/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