mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
fix for userns;
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
f37a7df986
commit
36028b7bc4
|
@ -43,8 +43,8 @@ RUN buildDeps=' \
|
|||
&& set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -sSL "http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2" -o /tmp/irssi.tar.bz2 \
|
||||
&& curl -sSL "http://www.irssi.org/files/irssi-${IRSSI_VERSION}.tar.bz2.sig" -o /tmp/irssi.tar.bz2.sig \
|
||||
&& curl -fsSL "https://github.com/irssi-import/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.bz2" -o /tmp/irssi.tar.bz2 \
|
||||
&& curl -fsSL "https://github.com/irssi-import/irssi/releases/download/${IRSSI_VERSION}/irssi-${IRSSI_VERSION}.tar.bz2.sig" -o /tmp/irssi.tar.bz2.sig \
|
||||
&& gpg --verify /tmp/irssi.tar.bz2.sig \
|
||||
&& mkdir -p /usr/src/irssi \
|
||||
&& tar -xjf /tmp/irssi.tar.bz2 -C /usr/src/irssi --strip-components 1 \
|
||||
|
@ -81,7 +81,6 @@ RUN buildDeps=' \
|
|||
&& apt-get purge -y --auto-remove $buildDeps
|
||||
|
||||
WORKDIR $HOME
|
||||
VOLUME $HOME/.irssi
|
||||
|
||||
USER user
|
||||
CMD ["irssi"]
|
||||
|
|
|
@ -23,6 +23,7 @@ MAINTAINER Jessie Frazelle <jess@linux.com>
|
|||
RUN apt-get update && apt-get install -y \
|
||||
at-spi2-core \
|
||||
dbus \
|
||||
dbus-x11 \
|
||||
libgl1-mesa-dri \
|
||||
libgl1-mesa-glx \
|
||||
libnotify-bin \
|
||||
|
@ -30,6 +31,15 @@ RUN apt-get update && apt-get install -y \
|
|||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV HOME /home/user
|
||||
RUN useradd --create-home --home-dir $HOME user \
|
||||
&& mkdir -p $HOME/.cache/dconf \
|
||||
&& mkdir -p $HOME/.dbus \
|
||||
&& chown -R user:user $HOME
|
||||
|
||||
COPY org.freedesktop.Notifications.service /usr/share/dbus-1/services/org.freedesktop.Notifications.service
|
||||
|
||||
WORKDIR $HOME
|
||||
|
||||
USER user
|
||||
ENTRYPOINT ["/usr/lib/x86_64-linux-gnu/notify-osd"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user