-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile_amd64
47 lines (44 loc) · 1.52 KB
/
Dockerfile_amd64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:20.04
ENV DEBFULLNAME Chugunov Roman
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV HOME /root
ENV PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/root/.cargo/bin:/usr/src/figma-linux/.node_modules/.bin
WORKDIR /usr/src/figma-linux
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt install -y --no-install-recommends \
devscripts \
libfreetype6 \
dput \
build-essential \
lsb-release \
equivs \
git \
curl \
git-buildpackage \
nano \
npm \
rpm \
libfuse2 \
libarchive-tools \
pristine-tar && \
curl -sL https://deb.nodesource.com/setup_18.x | bash - && \
apt install -y --no-install-recommends nodejs && \
cd /tmp && \
apt-get download fuse && \
dpkg-deb -x fuse_* . && \
dpkg-deb -e fuse_* && \
rm fuse_*.deb && \
echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst && \
dpkg-deb -b . /fuse.deb && \
dpkg -i /fuse.deb && \
cd /usr/src/figma-linux && \
curl -L https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage --output ./appimagetool-x86_64.AppImage && \
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/libfreetype.so.6 && \
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/libfreetype.so && \
ldconfig && \
mv ./appimagetool-x86_64.AppImage /bin/appimagetool && \
chmod +x /bin/appimagetool && \
mkdir -p /root/.cargo/bin && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y