fix Deployment

This commit is contained in:
2025-07-28 15:03:18 +08:00
parent 07e644e1cf
commit 610d0f5475
5 changed files with 15 additions and 45 deletions

View File

@@ -43,10 +43,6 @@ RUN apk --no-cache add tzdata curl
# 设置时区
ENV TZ=Asia/Shanghai
# 创建非root用户
RUN addgroup -g 1001 tyapi && \
adduser -D -s /bin/sh -u 1001 -G tyapi tyapi
# 设置工作目录
WORKDIR /app
@@ -57,11 +53,6 @@ COPY --from=builder /app/tyapi-server .
COPY --chown=tyapi:tyapi config.yaml .
COPY --chown=tyapi:tyapi configs/ ./configs/
# 创建日志目录
RUN mkdir -p logs && chown -R tyapi:tyapi logs
# 使用root权限运行注释掉非root用户
# USER tyapi
# 暴露端口
EXPOSE 8080