-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 1.14 KB
/
Dockerfile
File metadata and controls
34 lines (24 loc) · 1.14 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
29
30
31
32
33
34
# ==============================================================
# ⚠️ USAGE: TRIGGERED BY MAKEFILE
# This file is executed via the 'linux-release-docker' command.
# ==============================================================
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
COPY linux_deps.list /tmp/linux_deps.list
RUN apt-get update && \
DEPS=$(cat /tmp/linux_deps.list | tr -d '\r' | sed 's/#.*//g' | xargs) && \
\
apt-get install -y --no-install-recommends $DEPS && \
\
rm -rf /var/lib/apt/lists/* && \
echo "root ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN wget -O /usr/local/bin/appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" && \
chmod +x /usr/local/bin/appimagetool
RUN mkdir -p /root/develop && \
git clone https://github.com/flutter/flutter.git -b stable /root/develop/flutter
ENV PATH="/root/develop/flutter/bin:/root/.pub-cache/bin:${PATH}"
RUN git config --global --add safe.directory /root/develop/flutter && \
flutter config --no-analytics && \
dart pub global activate fastforge
ENV APPIMAGE_EXTRACT_AND_RUN=1
WORKDIR /app