HuggingFace0920 commited on
Commit
3da73cf
·
verified ·
1 Parent(s): 420467b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -34,7 +34,8 @@ RUN set -eux; \
34
  jq \
35
  python3 \
36
  python3-pip \
37
- python3-venv; \
 
38
  \
39
  # 清理APT缓存以减小镜像体积
40
  apt-get clean; \
@@ -62,7 +63,7 @@ USER $APP_USER
62
 
63
  # 复制并设置脚本权限
64
  COPY --chown=${APP_USER}:${APP_USER} sync_data.sh ./
65
- RUN chmod +x sync_data.sh
66
 
67
  # 暴露服务端口
68
  EXPOSE 4567
 
34
  jq \
35
  python3 \
36
  python3-pip \
37
+ python3-venv \
38
+ dos2unix; \
39
  \
40
  # 清理APT缓存以减小镜像体积
41
  apt-get clean; \
 
63
 
64
  # 复制并设置脚本权限
65
  COPY --chown=${APP_USER}:${APP_USER} sync_data.sh ./
66
+ RUN dos2unix sync_data.sh && chmod +x sync_data.sh
67
 
68
  # 暴露服务端口
69
  EXPOSE 4567