-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
51 lines (40 loc) · 1.72 KB
/
Dockerfile
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
48
49
50
FROM archlinux
RUN ln -s /usr/share/zoneinfo/UTC /etc/localtime
RUN pacman-key --init
RUN pacman -Sy archlinux-keyring --noconfirm && \
pacman -Syu --noconfirm \
alsa-lib \
appmenu-gtk-module \
base-devel \
bash \
curl \
flatpak \
flatpak-builder \
git \
gtk3 \
librsvg \
libappindicator-gtk3 \
librsvg \
libvips \
nodejs \
npm \
nss \
openssl \
python \
python-aiohttp \
python-pipx \
python-toml \
webkit2gtk \
wget
RUN npm update -g npm
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
RUN echo 'source $HOME/.cargo/env' >> $HOME/.bashrc
RUN bash -c 'export PATH=$PATH:/root/.cargo/bin; rustup self update'
ENV CARGO_HOME=/app/lonewolf-tauri
RUN npm install -g puppeteer
RUN git clone https://github.com/flatpak/flatpak-builder-tools.git /opt/flatpak-builder-tools
RUN echo 'export PATH=$PATH:/root/.local/bin' >> /root/.bashrc
RUN cd /opt/flatpak-builder-tools/node; pipx install .
RUN cp /opt/flatpak-builder-tools/cargo/flatpak-cargo-generator.py /usr/bin/flatpak-cargo-generator.py
RUN chmod +x /usr/bin/flatpak-cargo-generator.py
WORKDIR /app