Created
May 6, 2020 01:19
-
-
Save gyulkkajo/66657893c6b2e28cd9013d739662b1b9 to your computer and use it in GitHub Desktop.
Docker: Local build environment for Ubuntu 16.04
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
#!/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 . |
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
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