Skip to content

Commit fb70ebf

Browse files
CR-15390 (#42)
* wip * wip * added busybox * added busybox
1 parent 24acbe6 commit fb70ebf

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

Dockerfile

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
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
1411
COPY ./.ssh/ /root/.ssh/
1512

@@ -20,9 +17,9 @@ RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
2017
COPY ./start.sh /run/start.sh
2118
RUN 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
2623
USER nodeuser
2724

2825
CMD ["/run/start.sh"]

service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 10.1.12
1+
version: 10.1.13

0 commit comments

Comments
 (0)