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

12345678910111213141516171819202122232425262728
  1. FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/golang:1.22.4-alpine3.20 AS builder
  2. WORKDIR /app
  3. COPY . .
  4. ENV GO111MODULE=on GOPROXY=https://goproxy.cn,direct
  5. RUN go mod download
  6. RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o pcm-core-api
  7. FROM registry.cn-hangzhou.aliyuncs.com/jcce-images/alpine:3.20
  8. WORKDIR /app
  9. #修改alpine源为上海交通大学
  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 && update-ca-certificates && \
  12. apk add --update tzdata && \
  13. rm -rf /var/cache/apk/*
  14. COPY --from=builder /app/pcm-core-api .
  15. COPY etc/pcm.yaml .
  16. ENV TZ=Asia/Shanghai
  17. EXPOSE 8999
  18. ENTRYPOINT ./pcm-core-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.