1 Star 0 Fork 753

SlipCamel/mayfly-go

forked from dromara/mayfly-go 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 644 Bytes
一键复制 编辑 原始数据 按行查看 历史
ARG BASEIMAGES=m.daocloud.io/docker.io/alpine:3.20.2
FROM ${BASEIMAGES} AS builder
ARG TARGETARCH
ARG MAYFLY_GO_VERSION
ARG MAYFLY_GO_DIR_NAME=mayfly-go-linux-${TARGETARCH}
ARG MAYFLY_GO_URL=https://gitee.com/dromara/mayfly-go/releases/download/${MAYFLY_GO_VERSION}/${MAYFLY_GO_DIR_NAME}.zip
RUN wget -cO mayfly-go.zip ${MAYFLY_GO_URL} && \
unzip mayfly-go.zip && \
mv ${MAYFLY_GO_DIR_NAME}/* /opt
FROM ${BASEIMAGES}
ARG TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY --from=builder /opt/mayfly-go /usr/local/bin/mayfly-go
WORKDIR /mayfly-go
EXPOSE 18888
CMD ["mayfly-go"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/SlipCamel/mayfly-go.git
git@gitee.com:SlipCamel/mayfly-go.git
SlipCamel
mayfly-go
mayfly-go
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385