mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* use docker for build steps that require linux when not on linux * use fuse for overlay * quiet mountpoint * node 22 * misc fixes * make shasum more compliant * optimize download-base-image.sh with cleaner url handling and checksum verification * fix script * fixes #2900 * bump node and npm versions in web readme * Minor pl.ts fixes * fixes in response to synapse issues * beta.8 * update ts-matches * beta.11 * pl.ts finetuning --------- Co-authored-by: Mariusz Kogen <k0gen@pm.me> Co-authored-by: Matt Hill <mattnine@protonmail.com>
56 lines
1.2 KiB
Docker
56 lines
1.2 KiB
Docker
FROM debian:bookworm
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
ca-certificates \
|
|
curl \
|
|
gpg \
|
|
build-essential \
|
|
sed \
|
|
grep \
|
|
gawk \
|
|
jq \
|
|
gzip \
|
|
brotli \
|
|
qemu-user-static \
|
|
binfmt-support \
|
|
squashfs-tools \
|
|
git \
|
|
debspawn \
|
|
rsync \
|
|
b3sum \
|
|
fuse-overlayfs \
|
|
sudo \
|
|
systemd \
|
|
systemd-container \
|
|
systemd-sysv \
|
|
dbus \
|
|
dbus-user-session
|
|
|
|
RUN systemctl mask \
|
|
systemd-firstboot.service \
|
|
systemd-udevd.service \
|
|
getty@tty1.service \
|
|
console-getty.service
|
|
|
|
RUN git config --global --add safe.directory /root/start-os
|
|
|
|
RUN mkdir -p /etc/debspawn && \
|
|
echo "AllowUnsafePermissions=true" > /etc/debspawn/global.toml
|
|
|
|
ENV NVM_DIR=~/.nvm
|
|
ENV NODE_VERSION=22
|
|
RUN mkdir -p $NVM_DIR && \
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash && \
|
|
. $NVM_DIR/nvm.sh \
|
|
nvm install $NODE_VERSION && \
|
|
nvm use $NODE_VERSION && \
|
|
nvm alias default $NODE_VERSION && \
|
|
ln -s $(which node) /usr/bin/node && \
|
|
ln -s $(which npm) /usr/bin/npm
|
|
|
|
RUN mkdir -p /root/start-os
|
|
WORKDIR /root/start-os
|
|
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ] |