Skip to content

Instantly share code, notes, and snippets.

@gyulkkajo
Created May 6, 2020 01:19
Show Gist options
  • Save gyulkkajo/62c21d142bdfda364825f0e39848b984 to your computer and use it in GitHub Desktop.
Save gyulkkajo/62c21d142bdfda364825f0e39848b984 to your computer and use it in GitHub Desktop.
Docker: Local build environment for Ubuntu 16.04
#!/bin/bash
echo "Build docker image"
echo "UID=$UID, USER=$USER"
sudo docker build --build-arg uid=$UID --build-arg user=$USER -t build_env .
FROM ubuntu:16.04
MAINTAINER [email protected]
RUN apt-get -y update
RUN apt-get -y install python3 bzip2 g++-multilib gcc-multilib gzip tar wget bison build-essential chrpath diffstat gawk git language-pack-en libglib2.0 python2.7 python3 python3-jinja2 python-minimal texi2html texinfo time tig bc libxml2-utils unzip zip libssl-dev vim tree
ARG user
ARG uid
RUN useradd -s /bin/bash $user -u $uid
USER $user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment