dockerfiles/figma-wine/Dockerfile
Jess Frazelle 611756d857
unprivileged user
Signed-off-by: Jess Frazelle <jess@oxide.computer>
2020-03-13 09:52:21 -07:00

28 lines
680 B
Docker

# Run figma windows app in a container with wine
#
# docker run --rm -it \
# -v /etc/localtime:/etc/localtime:ro \
# --cpuset-cpus 0 \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -e DISPLAY=unix$DISPLAY \
# --device /dev/snd:/dev/snd \
# --name figma-wine \
# jess/figma-wine bash
#
FROM r.j3ss.co/wine
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ADD https://desktop.figma.com/win/FigmaSetup.exe /usr/src/FigmaSetup.exe
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME \
&& chown user:user /usr/src/FigmaSetup.exe
WORKDIR $HOME
USER user
RUN echo "wine /usr/src/FigmaSetup.exe" > /home/user/.bash_history
CMD [ "bash" ]