diff --git a/Dockerfile b/Dockerfile index 83901ee..53c55f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,16 @@ -FROM alpine:3.18.2 +FROM chromedp/headless-shell MAINTAINER skye-z -# 创建运行用户 -RUN addgroup -S nonroot \ - && adduser -S betax -G nonroot - -# 如需在中国大陆地区构建清取消下方注释 -# RUN set -eux && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories - -RUN apk upgrade -U -a && \ - apk add chromium chromium-chromedriver\ - && rm -fr /var/cache/* && \ - mkdir /var/cache/apk +RUN apt-get update -y \ + && apt-get install -y fonts-noto-cjk \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ COPY p2w /usr/local/bin/ -RUN cd /usr/local/bin/ && \ - chmod +x /usr/local/bin/p2w - -# 切换用户,不要使用root!!! -USER betax +RUN chmod +x /usr/local/bin/p2w EXPOSE 12800 +ENTRYPOINT [] CMD [ "p2w","server" ] \ No newline at end of file