Add bun/Dockerfile

This commit is contained in:
dab 2025-03-19 20:22:41 +00:00
parent c4e05bf218
commit d5cc785123

27
bun/Dockerfile Normal file
View file

@ -0,0 +1,27 @@
FROM debian:12.9
ARG U_NAME="user"
ARG U_ID="1000"
RUN adduser --disabled-password --gecos '' --uid ${U_ID} ${U_NAME}
WORKDIR /home/${U_NAME}
#=================================#
# [ bun ]
USER root
RUN apt-get update && apt-get install -y \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
COPY install_bun.sh install_bun.sh
RUN chown ${U_NAME}:${U_NAME} install_bun.sh
USER ${U_NAME}
RUN /bin/bash install_bun.sh
#=================================#
USER ${U_NAME}