unprivileged user

Signed-off-by: Jess Frazelle <jess@oxide.computer>
This commit is contained in:
Jess Frazelle 2020-03-13 09:49:59 -07:00
parent abcba13a4d
commit 3d7b5ed43e
No known key found for this signature in database
GPG Key ID: 4BB1599E1A3071F2

View File

@ -14,6 +14,13 @@ LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ADD https://desktop.figma.com/win/FigmaSetup.exe /usr/src/FigmaSetup.exe ADD https://desktop.figma.com/win/FigmaSetup.exe /usr/src/FigmaSetup.exe
RUN echo "wine /usr/src/FigmaSetup.exe" > /root/.bash_history ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME
WORKDIR $HOME
USER user
RUN echo "wine /usr/src/FigmaSetup.exe" > /home/user/.bash_history
CMD [ "bash" ] CMD [ "bash" ]