You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 673 B

1234567891011121314151617181920212223242526272829
  1. FROM golang:1.21.2-alpine3.18 AS builder
  2. WORKDIR /app
  3. COPY . .
  4. RUN go env -w GO111MODULE=on \
  5. && go env -w GOPROXY=https://goproxy.cn,direct \
  6. && go env -w CGO_ENABLED=0 \
  7. && go mod download
  8. RUN go build -o pcm-coordinator-api /app/api/pcm.go
  9. FROM alpine:3.18
  10. WORKDIR /app
  11. RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories && \
  12. apk add --no-cache ca-certificates tzdata && \
  13. update-ca-certificates && \
  14. rm -rf /var/cache/apk/*
  15. COPY --from=builder /app/pcm-coordinator-api /app/
  16. COPY --from=builder /app/api/etc/pcm.yaml /app/
  17. ENV TZ=Asia/Shanghai
  18. EXPOSE 8999
  19. ENTRYPOINT ["./pcm-coordinator-api", "-f", "pcm.yaml"]

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.