Add bun/Dockerfile
This commit is contained in:
parent
c4e05bf218
commit
d5cc785123
1 changed files with 27 additions and 0 deletions
27
bun/Dockerfile
Normal file
27
bun/Dockerfile
Normal 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}
|
Reference in a new issue