1 Star 4 Fork 1

xmdhs/genshin-card

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
Dockerfile 457 Bytes
Copy Edit Raw Blame History
xmdhs authored 2023-01-11 22:43 . fix run
FROM golang:alpine as builder
RUN apk --no-cache add git ca-certificates
WORKDIR /build
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o main -trimpath -ldflags "-w -s" .
FROM alpine:latest
RUN set -ex \
&& apk --no-cache add ca-certificates tzdata \
&& mkdir /server \
&& adduser -H -D server\
&& chown -R server /server
USER server
WORKDIR /server
COPY --from=builder /build/main .
ENV PORT "8080"
EXPOSE 8080
CMD ["./main"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xmdhs/genshin-card.git
git@gitee.com:xmdhs/genshin-card.git
xmdhs
genshin-card
genshin-card
master

Search