Configurable user parameters (#2)

Update README

Configurable user parameters

Co-authored-by: Francesc Gordillo <yenien@posteo.net>
Reviewed-on: http://gitea.hatthieves.es/manalejandro/docker-wahay/pulls/2
Este commit está contenido en:
yenien
2020-05-30 08:42:32 +00:00
cometido por manalejandro
padre 007167f4cb
commit 52c13625d7
Se han modificado 4 ficheros con 26 adiciones y 10 borrados

Ver fichero

@@ -1,11 +1,18 @@
FROM golang
ENV UNAME mumble
ARG UID=1000
ARG GID=1000
ARG UNAME=mumble
ENV UID=${UID} \
GID=${GID} \
UNAME=${UNAME}
RUN apt update && apt upgrade -y && apt install -y curl lsb-release dirmngr pulseaudio-utils && apt clean
RUN curl -s https://dl.autonomia.digital/debian/keys.asc | apt-key add -
RUN echo deb https://dl.autonomia.digital/debian $(lsb_release -c | cut -f 2) main | tee /etc/apt/sources.list.d/wahay.list
RUN echo deb-src https://dl.autonomia.digital/debian $(lsb_release -c | cut -f 2) main | tee -a /etc/apt/sources.list.d/wahay.list
RUN apt update && apt install -y wahay && apt clean
RUN export UNAME=$UNAME UID=1000 GID=1000 && \
RUN export UNAME=$UNAME UID=$UID GID=$GID && \
mkdir -p "/home/${UNAME}" && \
echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \
echo "${UNAME}:x:${UID}:" >> /etc/group && \
@@ -15,4 +22,4 @@ RUN export UNAME=$UNAME UID=1000 GID=1000 && \
chown ${UID}:${GID} -R /home/${UNAME} && \
gpasswd -a ${UNAME} audio
USER ${UNAME}
ENTRYPOINT [ "wahay" ]
ENTRYPOINT [ "wahay" ]