mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-07 23:31:10 +08:00
【调整】在构建过程中添加 allinssl.sh 脚本,并更新 Dockerfile 以复制该脚本
This commit is contained in:
@@ -7,6 +7,7 @@ archives:
|
|||||||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
||||||
files:
|
files:
|
||||||
- LICENSE
|
- LICENSE
|
||||||
|
- script/allinssl.sh
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
|
||||||
builds:
|
builds:
|
||||||
|
|||||||
@@ -24,8 +24,11 @@ WORKDIR /www/allinssl/
|
|||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
RUN apk add --no-cache tzdata
|
RUN apk add --no-cache tzdata
|
||||||
|
|
||||||
# Copy binary from builder
|
# Copy binary and script from builder
|
||||||
COPY --from=builder /build/allinssl /www/allinssl/allinssl
|
COPY --from=builder /build/allinssl /www/allinssl/allinssl
|
||||||
|
COPY --from=builder /build/script/allinssl.sh /www/allinssl/allinssl.sh
|
||||||
|
|
||||||
|
RUN chmod +x /www/allinssl/allinssl.sh
|
||||||
|
|
||||||
ENV TZ=Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
RUN cat > /entrypoint.sh <<'EOF'
|
RUN cat > /entrypoint.sh <<'EOF'
|
||||||
|
|||||||
Reference in New Issue
Block a user