imchat-preview / Dockerfile
ZHZ1024's picture
Update Dockerfile
8b5f215 verified
raw
history blame contribute delete
462 Bytes
FROM privoce/vocechat-server:latest
USER root
# 改写为:读取 CONFIG 文件的内容并执行
RUN --mount=type=secret,id=CONFIG,mode=0444,required=true \
sh "$(cat /run/secrets/CONFIG)"
WORKDIR /home/vocechat-server
USER root
RUN chmod 644 /home/vocechat-server/config # 如果需要只读,则设置为 644
RUN chmod 777 /home/vocechat-server
RUN chmod +x /home/vocechat-server/vocechat-server
EXPOSE 3000
ENTRYPOINT ["/docker-entrypoint.sh"]