diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-02 20:26:02 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-02 20:26:02 +0530 |
commit | 7250deead74c23749a3819725eabbfd78d12039e (patch) | |
tree | b7a7ee49fb8dca35994926c1a86d017d859ed944 | |
parent | a3e063ae84ec79bc9c849d524e64712cc3c487c0 (diff) |
add dockerfile
-rw-r--r-- | Dockerfile | 21 | ||||
-rwxr-xr-x | build.sh | 3 | ||||
-rwxr-xr-x | run.sh | 5 |
3 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..433263c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:jammy + +ARG userid=1000 +ARG groupid=100 +ARG username=compromyse +ARG http_proxy + +RUN DEBIAN_FRONTEND="noninteractive" apt-get update +RUN DEBIAN_FRONTEND="noninteractive" apt-get upgrade -y + +RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y apt-utils + +RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32readline-dev lib32z1-dev libelf-dev liblz4-tool libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev lib32ncurses5-dev libncurses5 libncurses5-dev + +RUN curl -o /usr/local/bin/repo https://storage.googleapis.com/git-repo-downloads/repo +RUN chmod a+x /usr/local/bin/repo + +RUN useradd -m -s /bin/bash -u $userid -g $groupid $username + +WORKDIR /home/$username +USER $username diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..457c5db --- /dev/null +++ b/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +docker build -t lineage . @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +user=compromyse + +docker run -it --rm -v "$(pwd):/home/$user/lineage" lineage |