fix Deployment
This commit is contained in:
@@ -57,10 +57,8 @@ 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 && \
|
||||
chmod 755 logs
|
||||
# 创建日志目录
|
||||
RUN mkdir -p logs && chown -R tyapi:tyapi logs
|
||||
|
||||
# 切换到非root用户
|
||||
USER tyapi
|
||||
|
||||
Reference in New Issue
Block a user