From 3d7b5ed43e100917f9036ba22b057bd35b1706dd Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Fri, 13 Mar 2020 09:49:59 -0700 Subject: [PATCH] unprivileged user Signed-off-by: Jess Frazelle --- figma-wine/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/figma-wine/Dockerfile b/figma-wine/Dockerfile index 22681bd..1663b7b 100644 --- a/figma-wine/Dockerfile +++ b/figma-wine/Dockerfile @@ -14,6 +14,13 @@ LABEL maintainer "Jessie Frazelle " 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" ]