From ed9e11c56e1be7fa19683f19cc00fedd1a105f50 Mon Sep 17 00:00:00 2001 From: devome Date: Thu, 2 Dec 2021 14:10:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E9=95=9C=E5=83=8F=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=BAubuntu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 15 +++++++-------- buildx.sh | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac5a5a64..bcf82d54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM alpine:3.14 +FROM ubuntu +ARG DEBIAN_FRONTEND=noninteractive ENV LANG=zh_CN.UTF-8 \ TZ=Asia/Shanghai \ PS1="\u@\h:\w \$ " -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ - && apk add --update --no-cache \ +RUN apt update \ + && apt install -y --no-install-recommends \ nginx \ - nginx-mod-stream \ - openjdk8-jre \ + libnginx-mod-stream \ + openjdk-8-jre \ net-tools \ curl \ wget \ @@ -14,8 +15,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories fontconfig \ tzdata \ tini \ - acme.sh \ - sqlite \ + sqlite3 \ && fc-cache -f -v \ && ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime \ && echo "${TZ}" > /etc/timezone \ @@ -24,4 +24,3 @@ COPY target/nginxWebUI-*.jar /home/nginxWebUI.jar COPY entrypoint.sh /usr/local/bin/entrypoint.sh VOLUME ["/home/nginxWebUI"] ENTRYPOINT ["tini", "entrypoint.sh"] - diff --git a/buildx.sh b/buildx.sh index c91e46dc..4a4a04de 100755 --- a/buildx.sh +++ b/buildx.sh @@ -10,7 +10,7 @@ set -o pipefail ## 基本信息 repo="cym1102/nginxwebui" -arch="linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/ppc64le,linux/s390x" +arch="linux/amd64,linux/arm64,linux/arm/v7" ver=$(cat pom.xml | grep -A1 nginxWebUI | grep version | grep -oP "\d+\.\d+\.\d+") echo "构建镜像:$repo" echo "构建架构:$arch" -- Gitee