feat: 0.1.3
All checks were successful
/ build ushare (push) Successful in 39s
/ clean (push) Successful in 0s

1. 完善 dockerfile 和 entrypoint
This commit is contained in:
loveuer
2025-05-12 15:53:32 +08:00
parent b1b3ac5b6b
commit 9146c87cad
4 changed files with 46 additions and 3 deletions

View File

@ -27,9 +27,12 @@ COPY --from=backend-builder /app/ushare /usr/local/bin/ushare
# 配置 Nginx
RUN rm /etc/nginx/conf.d/default.conf
COPY deployment/nginx.conf /etc/nginx/conf.d
COPY deployment/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# 开放端口
EXPOSE 80
# 启动服务
CMD ["sh", "-c", "nginx -g 'daemon off;' & exec ushare"]
ENTRYPOINT ["entrypoint.sh"]