aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: c8057d6e669ad8486a6b0676a9b96a48ddc3de2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM debian:sid-slim

RUN apt-get update && apt-get install -y \
    dirmngr \
    gnupg \
    && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0AB215679C571D1C8325275B9BDB3D89CE49EC21 \
    && echo "deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial main" >> /etc/apt/sources.list.d/firefox.list \
    && apt-get update && apt-get install -y \
    firefox \
    apulse \
    ffmpeg \
    pulseaudio \
	libasound2 \
    libgl1-mesa-glx \
	libpulse0 \
    dbus-x11 \
    sudo

RUN /bin/bash

ENV UNAME thorny
ENV UID 1000
ENV GID 985


# # Set up the user
RUN export UNAME=$UNAME UID=$UID GID=1000 && \
    mkdir -p "/home/${UNAME}" && \
    echo "${UNAME}:x:${UID}:${GID}:${UNAME} User,,,:/home/${UNAME}:/bin/bash" >> /etc/passwd && \
    echo "${UNAME}:x:${UID}:" >> /etc/group

RUN chown thorny:thorny /home/thorny 
#     echo "${UNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${UNAME} && \
#     chmod 0440 /etc/sudoers.d/${UNAME} && \
#     chown ${UID}:${GID} -R /home/${UNAME} && \
#     gpasswd -a ${UNAME} audio


USER $UNAME
ENV HOME /home/thorny
WORKDIR /home/thorny
CMD /bin/bash