diff --git a/.goreleaser.yml b/.goreleaser.yml index e0f50af..eb8e3b6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -7,6 +7,7 @@ archives: name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" files: - LICENSE + - script/allinssl.sh checksum: name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt" builds: diff --git a/Dockerfile b/Dockerfile index 4985d00..dda8cd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,11 @@ WORKDIR /www/allinssl/ # Install runtime dependencies 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/script/allinssl.sh /www/allinssl/allinssl.sh + +RUN chmod +x /www/allinssl/allinssl.sh ENV TZ=Asia/Shanghai RUN cat > /entrypoint.sh <<'EOF'