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

12345678910111213141516171819202122232425262728
  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. RUN go build -o pcm-coordinator-api /app/api/pcm.go
  8. FROM alpine:3.18
  9. WORKDIR /app
  10. RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.sjtug.sjtu.edu.cn/g' /etc/apk/repositories && \
  11. apk add --no-cache ca-certificates tzdata && \
  12. update-ca-certificates && \
  13. rm -rf /var/cache/apk/*
  14. COPY --from=builder /app/pcm-coordinator-api /app/
  15. COPY --from=builder /app/api/etc/pcm.yaml /app/
  16. ENV TZ=Asia/Shanghai
  17. EXPOSE 8999
  18. 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.