File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ RUN apk --no-cache add ca-certificates tzdata
3838
3939WORKDIR /opt/cyberpoc
4040
41- # 创建非root用户
42- RUN addgroup -g 1001 -S cyberpoc && \
43- adduser -S cyberpoc -u 1001
44-
4541# 从构建阶段复制文件
4642COPY --from=backend-builder /app/cyberpoc .
4743
@@ -52,11 +48,7 @@ COPY config.yaml* ./
5248COPY default/ ./default/
5349
5450# 创建必要的目录
55- RUN mkdir -p logs data && \
56- chown -R cyberpoc:cyberpoc /opt/cyberpoc
57-
58- # 切换到非root用户
59- USER cyberpoc
51+ RUN mkdir -p logs data
6052
6153# 健康检查
6254HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ services:
2020 image : dushixiang/cyberpoc:latest
2121 ports :
2222 - " 8080:8080"
23+ - " 8081:8081"
2324 volumes :
2425 - ./config.yaml:/opt/cyberpoc/config.yaml:ro
2526 - ./default:/opt/cyberpoc/default:ro
You can’t perform that action at this time.
0 commit comments