Commit 8a061121 authored by 道非仙's avatar 道非仙
Browse files

fix: update Alpine repository mirror and install build/runtime dependencies

parent 864aba93
...@@ -47,7 +47,9 @@ ENV GOPROXY=${GOPROXY} ...@@ -47,7 +47,9 @@ ENV GOPROXY=${GOPROXY}
ENV GOSUMDB=${GOSUMDB} ENV GOSUMDB=${GOSUMDB}
# Install build dependencies # Install build dependencies
RUN apk add --no-cache git ca-certificates tzdata RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories && \
apk update && \
apk add --no-cache git ca-certificates tzdata
WORKDIR /app/backend WORKDIR /app/backend
...@@ -89,7 +91,9 @@ LABEL description="Sub2API - AI API Gateway Platform" ...@@ -89,7 +91,9 @@ LABEL description="Sub2API - AI API Gateway Platform"
LABEL org.opencontainers.image.source="https://github.com/Wei-Shaw/sub2api" LABEL org.opencontainers.image.source="https://github.com/Wei-Shaw/sub2api"
# Install runtime dependencies # Install runtime dependencies
RUN apk add --no-cache \ RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.aliyun.com|g' /etc/apk/repositories && \
apk update && \
apk add --no-cache \
ca-certificates \ ca-certificates \
tzdata \ tzdata \
su-exec \ su-exec \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment