Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM alpine:3.15.6
#moving to ubuntu instead of debian to solve high vulnerabilities
FROM ubuntu:jammy-20221101

RUN apk add --no-cache git=~2.34.4 bash openssh
RUN apt-get update -y && apt-get install git bash openssl -y

# install git-lfs
RUN apk add --no-cache --virtual deps openssl && \
export ARCH=$([[ "$(uname -m)" == "aarch64" ]] && echo "arm64" || echo "amd64") && \
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 && \
mv git-lfs /usr/bin/ && \
git lfs install && \
apk del deps
RUN apt-get install git-lfs && \
git lfs install

RUN apt-get update -y && apt-get install busybox -y && ln -s /bin/busybox /usr/bin/[[
# add ssh record on which ssh key to use
COPY ./.ssh/ /root/.ssh/

Expand All @@ -20,9 +17,9 @@ RUN ssh-keyscan bitbucket.org >> /root/.ssh/known_hosts
COPY ./start.sh /run/start.sh
RUN chmod +x /run/start.sh

#add non-root user
RUN addgroup -g 1000 nodegroup \
&& adduser -u 1000 -G nodegroup -s /bin/sh -D nodeuser
# USER nodeuser
RUN addgroup --gid 3000 nodegroup && \
adduser --uid 3000 --ingroup nodegroup --shell /bin/sh --disabled-password nodeuser
USER nodeuser

CMD ["/run/start.sh"]
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 10.1.12
version: 10.1.13