-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (31 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
40 lines (31 loc) · 1.16 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
35
36
37
38
39
40
FROM dart:3.10.2
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
git \
wget \
build-essential \
pkg-config \
libssl-dev \
strace \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.1/zsh-in-docker.sh)" -- \
-p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-history-substring-search \
-p https://github.com/zsh-users/zsh-syntax-highlighting \
-p https://github.com/unixorn/fzf-zsh-plugin.git
# ---- Install Rust & Cargo via rustup (stable toolchain) ----
RUN curl https://sh.rustup.rs -sSf | \
sh -s -- -y --profile minimal \
&& echo 'source $HOME/.cargo/env' >> /etc/profile.d/rust.sh
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /app
COPY pubspec.yaml pubspec.lock ./
COPY third_party/sqlite3.dart/sqlite3 ./third_party/sqlite3.dart/sqlite3
RUN dart pub get
RUN dart --disable-analytics
RUN dart run build_runner build --delete-conflicting-outputs
ENTRYPOINT [ "/bin/zsh" ]
CMD ["-l"]