-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a21c9f
commit c4183b8
Showing
1 changed file
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
FROM ubuntu:22.04 | ||
LABEL org.opencontainers.image.authors="Badak Team Blibli.com <[email protected]>" | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
ARG VERSION=4.9 | ||
ARG user=jenkins | ||
|
@@ -12,11 +13,18 @@ ARG gid=1000 | |
RUN apt-get update | ||
RUN apt-get -y upgrade | ||
RUN apt install -y git | ||
RUN apt-get install -y curl && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
RUN export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | ||
RUN [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | ||
RUN nvm install 18 | ||
RUN nvm use 18 | ||
RUN apt-get install -y curl | ||
# nvm environment variables | ||
ENV NVM_DIR /usr/local/nvm | ||
ENV NODE_VERSION 18 | ||
RUN mkdir /usr/local/nvm | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
# install node and npm | ||
RUN source $NVM_DIR/nvm.sh \ | ||
&& nvm install $NODE_VERSION \ | ||
&& nvm alias default $NODE_VERSION \ | ||
&& nvm use default | ||
|
||
RUN apt-get install -y build-essential | ||
|
||
# Install a basic SSH server | ||
|