webbit / Dockerfile
maohaodong
build(docker): 优化Dockerfile中用户创建方式
98bfa13
Raw History Blame Contribute Delete
217 Bytes
# 使用原基础镜像
# Set up a new user named "user" with user ID 1000
RUN addgroup -g 1000 user && adduser -D -u 1000 -G user user
# Switch to the "user" user
USER user
FROM ghcr.io/webtor-io/self-hosted:latest