Files
novalon-website/Dockerfile.tools
T
张翔 1db8cbdf97
ci/woodpecker/push/woodpecker Pipeline failed
fix: build-and-deploy 阶段使用自定义工具镜像
- 更新 build-and-deploy 阶段使用 *tools_image
- 重构 Dockerfile.tools: 基于 node:20-alpine,添加 git/ssh/rsync/curl/dig/nc
- 镜像大小: 60.5MB (包含 Node.js 20 + 所有工具)
- 移除临时安装 SSH/rsync 的步骤
2026-03-31 17:35:14 +08:00

26 lines
486 B
Docker

FROM --platform=linux/amd64 node:20-alpine
# 安装额外的工具
RUN apk add --no-cache \
git \
openssh-client \
curl \
bind-tools \
netcat-openbsd \
rsync
# 设置时区
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
# 创建非root用户
RUN addgroup -g 1001 appgroup && \
adduser -u 1001 -S appuser -G appgroup
USER appuser
WORKDIR /home/appuser
CMD ["sh"]