You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
381 B

FROM alpine:latest
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 chown -R app /app
ADD server /app/server
ADD work.ini /etc/supervisor.d/
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]