Browse Source

add alpine rootless

main
凌文龙 2 years ago
parent
commit
0f8d9cb14e
  1. 12
      3.15/rootless/Dockerfile

12
3.15/rootless/Dockerfile

@ -0,0 +1,12 @@
FROM alpine:3.15
RUN set -eu; \
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories; \
apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata; \
addgroup -g 1000 fs \
&& adduser -u 1000 -G fs -s /bin/sh -D fs
USER fs
Loading…
Cancel
Save