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

123456789101112131415161718192021222324252627282930
  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-rpc /app/rpc/pcmcore.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 2004
  19. ENTRYPOINT ./pcm-coordinator-rpc -f pcmcore.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.