fix: use Aliyun Alpine mirror and fix frontend COPY source

This commit is contained in:
2026-06-26 15:30:54 +08:00
parent 1991544a45
commit 751f9d7eed
+3 -2
View File
@@ -9,11 +9,12 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && \
apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /app/server .
COPY --from=builder /app/frontend ./frontend
COPY frontend ./frontend
EXPOSE 8080
CMD ["./server"]