mirror of
https://github.com/certd/certd.git
synced 2026-07-08 13:47:36 +08:00
chore: 1
This commit is contained in:
+6
-10
@@ -19,12 +19,11 @@ FROM base-${TARGETARCH}${TARGETVARIANT:+-}${TARGETVARIANT}
|
|||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
EXPOSE 7002
|
EXPOSE 7002
|
||||||
|
|
||||||
# 根据基础镜像发行版选择包管理器:trixie-slim 走 apt-get,alpine 走 apk
|
# 根据基础镜像发行版选择包管理器
|
||||||
# alpine 上没有 netcat-openbsd / iputils-ping / dnsutils / iproute2 这些 Debian 包名,
|
# trixie-slim -> apt-get, alpine -> apk
|
||||||
# 但存在功能等价的 apk 包(busybox 已内置 ping/nslookup,需要额外安装 netcat-openbsd / iproute2 / bind-tools)
|
|
||||||
RUN if [ -f /etc/debian_version ]; then \
|
RUN if [ -f /etc/debian_version ]; then \
|
||||||
apt-get update && \
|
apt-get update \
|
||||||
apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
gnupg \
|
gnupg \
|
||||||
wget \
|
wget \
|
||||||
@@ -42,14 +41,14 @@ RUN if [ -f /etc/debian_version ]; then \
|
|||||||
elif [ -f /etc/alpine-release ]; then \
|
elif [ -f /etc/alpine-release ]; then \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
openssl \
|
openssl \
|
||||||
openjdk8-jre \
|
openjdk8-jre; \
|
||||||
else \
|
else \
|
||||||
echo "Unsupported base image"; exit 1; \
|
echo "Unsupported base image"; exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
ENV TERM xterm
|
ENV TERM=xterm
|
||||||
ENV LEGO_VERSION=4.30.1
|
ENV LEGO_VERSION=4.30.1
|
||||||
ENV LEGO_DOWNLOAD_DIR=/app/tools/lego
|
ENV LEGO_DOWNLOAD_DIR=/app/tools/lego
|
||||||
|
|
||||||
@@ -77,6 +76,3 @@ ENV MIDWAY_SERVER_ENV=production
|
|||||||
COPY --from=builder /workspace/certd-server/ /app/
|
COPY --from=builder /workspace/certd-server/ /app/
|
||||||
COPY ./patch/ssh2/*.js /app/node_modules/.pnpm/node_modules/ssh2/lib/protocol/
|
COPY ./patch/ssh2/*.js /app/node_modules/.pnpm/node_modules/ssh2/lib/protocol/
|
||||||
CMD ["node", "--optimize-for-size", "./bootstrap.js"]
|
CMD ["node", "--optimize-for-size", "./bootstrap.js"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user