1 Star 0 Fork 0

wheatj/nudex-voter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 430 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM --platform=$BUILDPLATFORM golang:1.22-alpine AS builder
RUN apk add --no-cache gcc musl-dev
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 GOOS=linux GOARCH=$(go env GOARCH) go build -o /nudex-voter ./cmd
FROM --platform=$TARGETPLATFORM alpine:3.18
WORKDIR /app
RUN mkdir -p /app/db
COPY --from=builder /nudex-voter /app/nudex-voter
EXPOSE 8080 50051 4001
CMD ["/app/nudex-voter"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wheatj/nudex-voter.git
[email protected]:wheatj/nudex-voter.git
wheatj
nudex-voter
nudex-voter
chore/readme

搜索帮助