优化部署脚本
continuous-integration/drone/push Build is passing Details

main
franktrue 3 years ago
parent ba7e8075ec
commit 6f5618c6b7

@ -1,13 +1,8 @@
FROM alpine:latest FROM alpine:latest
WORKDIR /app WORKDIR /app
# 更新安装源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update && apk add --no-cache bash supervisor
RUN adduser -S -D -H -h /app -s /sbin/nologin -u 1000 app RUN adduser -S -D -H -h /app -s /sbin/nologin -u 1000 app
RUN chown -R app /app
ADD api2gpt-mid /app/server/ ADD api2gpt-mid /app/server/
ADD work.ini /etc/supervisor.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] CMD ["/app/server/api2gpt-mid"]
Loading…
Cancel
Save