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

13 lines
269 B

FROM golang:1.19
COPY ../verifyCode /src
WORKDIR /src
RUN GOPROXY=https://goproxy.cn,direct go install github.com/go-kratos/kratos/cmd/kratos/v2@latest
RUN GOPROXY=https://goproxy.cn,direct go mod tidy
EXPOSE 8000
EXPOSE 9000
VOLUME /data/conf
CMD ["kratos", "run"]