Skip to content

Commit 4de70e0

Browse files
committed
Add flutter SDK in devcontainer
1 parent beab7b5 commit 4de70e0

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.devcontainer/Dockerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:bookworm
1+
FROM mcr.microsoft.com/devcontainers/base:debian12
22

33
RUN env DEBIAN_FRONTEND=noninteractive \
44
apt-get update
@@ -7,4 +7,17 @@ RUN env DEBIAN_FRONTEND=noninteractive \
77
apt-get install -y \
88
gdb git cmake ninja-build pkg-config nano clang clang-format clang-tidy clang-tools \
99
libgl1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev fonts-liberation fontconfig libsystemd-dev libinput-dev libudev-dev libxkbcommon-dev libseat-dev \
10-
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa
10+
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-alsa \
11+
libepoxy-dev
12+
13+
USER 1000:1000
14+
WORKDIR /home/vscode
15+
16+
ARG FLUTTER_VERSION=3.22.1
17+
RUN env DEBIAN_FRONTEND=noninteractive \
18+
git clone -b $FLUTTER_VERSION https://github.com/flutter/flutter.git
19+
ENV PATH "/home/vscode/flutter/bin:$PATH"
20+
21+
RUN flutter doctor
22+
23+
USER root

0 commit comments

Comments
 (0)