mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
a20a544be1
Signed-off-by: Jess Frazelle <jess@oxide.computer>
28 lines
771 B
Docker
28 lines
771 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>"
|
|
|
|
ENV HOME /home/user
|
|
RUN useradd --create-home --home-dir $HOME user \
|
|
&& curl -sSL "https://desktop.figma.com/win/FigmaSetup.exe" > ${HOME}/FigmaSetup.exe \
|
|
&& chown -R user:user $HOME
|
|
|
|
WORKDIR $HOME
|
|
USER user
|
|
|
|
RUN echo "wine runas /trustlevel:0x20000 FigmaSetup.exe" > /home/user/.bash_history
|
|
RUN echo "winetricks dotnet45" >> /home/user/.bash_history
|
|
RUN echo "winecfg" >> /home/user/.bash_history
|
|
|
|
CMD [ "bash" ]
|