Dockerfile
changeset 120 02e37d9e96a9
parent 67 d06ee9c3f780
equal deleted inserted replaced
119:6be785b8cc85 120:02e37d9e96a9
     1 # Dockerfile to setup beremiz_public_dist build container
     1 # Dockerfile to setup beremiz_public_dist build container
     2 
     2 
     3 FROM ubuntu:focal
     3 FROM ubuntu:jammy
     4 
     4 
     5 ENV TERM xterm-256color
     5 ENV TERM xterm-256color
     6 
       
     7 COPY provision_focal64.sh .
       
     8 
       
     9 RUN ./provision_focal64.sh
       
    10 
     6 
    11 ENV LANG en_US.UTF-8
     7 ENV LANG en_US.UTF-8
    12 ENV LANGUAGE en_US:en
     8 ENV LANGUAGE en_US:en
    13 ENV LC_ALL en_US.UTF-8
     9 ENV LC_ALL en_US.UTF-8
    14 
    10 
    15 ARG UNAME=devel
    11 ARG UNAME=runner
    16 ENV UNAME ${UNAME}
    12 ENV UNAME ${UNAME}
    17 ARG UID=1000
    13 ARG UID=1000
    18 ARG GID=1000
    14 ARG GID=1000
    19 RUN groupadd -g $GID $UNAME
    15 RUN groupadd -g $GID $UNAME
    20 RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME
    16 RUN useradd -m -u $UID -g $GID -s /bin/bash $UNAME
       
    17 
       
    18 USER root
       
    19 
       
    20 COPY ./provision_jammy64.sh .
       
    21 
       
    22 RUN ./provision_jammy64.sh
    21 
    23 
    22 # easy to remember 'build' alias to invoke main makefile
    24 # easy to remember 'build' alias to invoke main makefile
    23 ARG OWNDIRBASENAME=beremiz_public_dist
    25 ARG OWNDIRBASENAME=beremiz_public_dist
    24 ENV OWNDIRBASENAME ${OWNDIRBASENAME}
    26 ENV OWNDIRBASENAME ${OWNDIRBASENAME}
    25 RUN /bin/echo -e '#!/bin/bash\nmake -f /home/'$UNAME'/src/'$OWNDIRBASENAME'/Makefile $*' > /usr/local/bin/build
    27 RUN /bin/echo -e '#!/bin/bash\nmake -f /home/'$UNAME'/src/'$OWNDIRBASENAME'/Makefile $*' > /usr/local/bin/build