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 733 B

123456789101112131415161718192021222324252627282930313233
  1. FROM golang:1.20.2-alpine3.17 AS builder
  2. WORKDIR /app
  3. LABEL stage=gobuilder
  4. ENV CGO_ENABLED 0
  5. ENV GOARCH amd64
  6. ENV GOPROXY https://goproxy.cn,direct
  7. COPY . .
  8. COPY api/etc/ /app/
  9. RUN go mod download && go build -o pcm-coordinator-api /app/api/pcm.go
  10. FROM alpine:3.16.2
  11. WORKDIR /app
  12. #修改alpine源为上海交通大学
  13. RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories && \
  14. apk update && \
  15. apk upgrade && \
  16. apk add --no-cache ca-certificates && update-ca-certificates && \
  17. apk add --update tzdata && \
  18. rm -rf /var/cache/apk/*
  19. COPY --from=builder /app/pcm-coordinator-api .
  20. COPY api/etc/pcm.yaml .
  21. ENV TZ=Asia/Shanghai
  22. EXPOSE 8999
  23. 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.