-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (21 loc) · 883 Bytes
/
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
FROM cgr.dev/chainguard/wolfi-base
ARG GITHUB_USERNAME="nunix"
ARG REPOSITORY="boxwolfi"
ENV FLEEKCONFIG="git@github.com:$GITHUB_USERNAME/$REPOSITORY.git"
ENV USER="root"
# Add packages
RUN apk update && \
apk add bash curl git posix-libc-utils
# Change root shell to BASH
RUN sed -i -e '/^root/s/\/bin\/ash/\/bin\/bash/' /etc/passwd
# Install NIX with the Determinate Systems script
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux --init none --no-confirm && \
source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
# Install Fleek
RUN mkdir -p /root/.config/nix && \
echo "experimental-features = nix-command flakes" >> /root/.config/nix/nix.conf && \
nix profile install github:ublue-os/fleek/main
# Apply the Fleek config
WORKDIR /root
RUN fleek init ${FLEEKCONFIG} && \
fleek apply