-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-git-ubuntu
34 lines (25 loc) · 1.13 KB
/
Dockerfile-git-ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Import the base docker image built
FROM ubuntu:24.04
# Set the SHELL to bash with pipefail option
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Prevent dialog during apt install
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NOWARNINGS="yes"
WORKDIR /opt/bin
# Add Packages
RUN apt-get -y update && apt-get --no-install-recommends -y install bash sed grep curl coreutils ca-certificates git git-lfs jq make nodejs npm openssl openssh-client skopeo socat python3
# Update git version
RUN apt update && apt-get -y install software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt update && apt-get -y install git git-lfs
# Install img
RUN curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.10/img-linux-amd64" -o "/opt/bin/img" && chmod a+x "/opt/bin/img"
# Install nvm
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && \
source ~/.nvm/nvm.sh && \
nvm use system && \
nvm run system --version
WORKDIR /cli
ADD ./package.json ./package-lock.json ./.npmrc ./
ADD ./scripts ./scripts
ADD ./commands ./commands
RUN npm install --production
ENTRYPOINT [ "npm", "start" ]