-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
28 lines (21 loc) · 1.11 KB
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
FROM mcr.microsoft.com/devcontainers/base:ubuntu-20.04
# ------------------------ Prepare docker environment ------------------------ #
RUN apt-get update
# Install general utilities
RUN apt-get -y install tree
# Install Flutter dependencies
RUN apt-get -y install curl file git unzip xz-utils zip clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# Install app-specific dependencies
RUN apt-get -y install keybinder-3.0 appindicator3-0.1 libappindicator3-1 libappindicator3-dev
# Install Flutter
RUN git clone https://github.com/flutter/flutter.git -b stable /home/vscode/flutter
RUN git config --global --add safe.directory /home/vscode/flutter
ENV PATH="$PATH:/home/vscode/flutter/bin"
RUN flutter upgrade
RUN chown -R vscode:vscode /home/vscode/flutter
# Prepare environment for building Flatpak
RUN apt-get install -y flatpak flatpak-builder
RUN flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
RUN flatpak install -y org.freedesktop.Sdk/x86_64/22.08
RUN flatpak install -y org.freedesktop.Platform/x86_64/22.08
RUN flatpak install -y flathub org.freedesktop.appstream-glib