2020-03-13 17:11:17 +01:00
|
|
|
# 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>"
|
|
|
|
|
2020-03-13 17:49:59 +01:00
|
|
|
ENV HOME /home/user
|
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
2020-03-13 18:15:06 +01:00
|
|
|
&& curl -sSL "https://desktop.figma.com/win/FigmaSetup.exe" > ${HOME}/FigmaSetup.exe \
|
|
|
|
&& chown -R user:user $HOME
|
2020-03-13 17:49:59 +01:00
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
USER user
|
|
|
|
|
2020-03-13 18:15:06 +01:00
|
|
|
RUN echo "wine runas /trustlevel:0x20000 FigmaSetup.exe" > /home/user/.bash_history
|
2020-03-13 17:54:29 +01:00
|
|
|
RUN echo "winetricks dotnet45" >> /home/user/.bash_history
|
|
|
|
RUN echo "winecfg" >> /home/user/.bash_history
|
2020-03-13 17:11:17 +01:00
|
|
|
|
|
|
|
CMD [ "bash" ]
|